On Wed Nov 16 00:23:03 2022 +0000, Zebediah Figura wrote:
Not sure why this was closed? It seems to make sense; it should just be a matter of using LoadLibrary() instead of GetModuleHandle().
Actually, I think it could use more clean up, the code seems to have some leftovers from pre-PE times. It should probably avoid using wgl_driver.h. Also, right now, it loads most functions with GetProcAddresss() but links directly to opengl32.dll for others. This could be unified and we could settle on one way or another. Depending on which one is preferred, we'd then get rid of GetModuleHandle() or opengl32 from IMPORTS/DELAYIMPORTS.