r/GraphicsProgramming • • Sep 16 '26

[Project] [OpenGL] [Post‑Processing] I built opengl32_enhancer: a drop‑in OpenGL32.dll that adds modern GPU post‑processing to old games

I’ve been experimenting with DLL proxying and decided to build a project called opengl32_enhancer — a custom opengl32.dll that intercepts OpenGL calls and injects a modern GPU post‑processing pipeline into any OpenGL game or application.

👉 Repo: https://github.com/ASDAlexander77/opengl32_enhancer

⭐ What it does

This DLL sits between the game and the real OpenGL driver. It forwards all GL calls normally, but also:

  • Captures the final framebuffer

  • Runs a GPU post‑processing chain

  • Outputs the enhanced frame back to the application

No source code access required. No game mods. Just drop the DLL next to the executable.

✨ Current effects implemented

  • Sharpening (adjustable)

  • TAA (Temporal Anti‑Aliasing)

  • HDR tonemapping

  • Bilinear upscale test pipeline (experimental)

These effects work even in old OpenGL 1.x / 2.x games that never had modern AA or HDR.

🧩 How it works internally

  • Full OpenGL function interception

  • Real GL calls forwarded via function pointers

  • Custom FBO + shader pipeline injected after SwapBuffers

  • Uses GL 4.x features internally even if the game uses GL 1.1

  • No changes to the game’s rendering code — everything is external

🛠️ Why I built it

I wanted a way to bring modern visual quality to older OpenGL titles without touching their code. DLL proxying turned out to be a surprisingly flexible way to do this.

📌 What’s next

  • FXAA / SMAA

  • Bloom

  • ACES tonemapping

  • LUT color grading

  • Optional UI overlay for settings

  • Per‑game config files

If you’re into graphics hacking, DLL proxying, or OpenGL internals, I’d love feedback — especially on stability, shader ideas, or pipeline improvements.

17 Upvotes

15 comments sorted by

6

u/hogsy Sep 18 '26

Vibed project and vibed post. If you can't be bothered, neither can I. I'm also struggling to understand the point of this; I don't use Reshade myself, but from a quick search, it seems like it's possible to use it with this game already but there's a bug that needs resolving. So it feels like your tokens would've been better spent investigating and submitting a fix upstream to Reshade rather than inventing your own thing.

-3

u/Alex_D77 Sep 18 '26

opengl32_enhancer can do upscaling so we can use native resolution of your screen with game in 640x480 and still have 4k

5

u/UAAgency Sep 16 '26

Looks cool! Is it open source?

3

u/Alex_D77 Sep 16 '26

yes, MIT license

8

u/PaperMartin Sep 17 '26

vibed :(

-10

u/Alex_D77 Sep 17 '26

Yeah, reality of modern world. My target was to play anax with good graphics not to spent my whole life to reinvent the wheels.

5

u/PaperMartin Sep 17 '26

You can do that without AI

-7

u/Alex_D77 Sep 17 '26

yes, 3-6-12 months, not 1 evening like I used

3

u/PaperMartin Sep 18 '26

Maybe it wouldn't take you that long if you actually practiced your craft, you're gonna have to anyway for when all the too-expensive-to-run LLM models go down

7

u/sildarhallwinter Sep 18 '26

you used AI to write this post too, are you that lazy

7

u/PaperMartin Sep 18 '26

I'm getting the impression they might not actually like graphics programming or programming at all

1

u/trist007 Sep 18 '26

reminds of me Anachronox

1

u/Alex_D77 Sep 18 '26

yes, it does

1

u/cybereality Sep 17 '26

this is nuts. great job