rust-windowing / glutin

A low-level library for OpenGL context creation
Apache License 2.0
1.98k stars 476 forks source link

Add a variable to set opengl.dll filename on WGL #1671

Closed CCnut closed 3 months ago

CCnut commented 5 months ago

Can a variable be added to set filename? Like QT_OPENGL_DLL. https://github.com/rust-windowing/glutin/blob/92281268669b4e5db4569b92ff23b6d2c01cd325/glutin/src/api/wgl/display.rs#L53

kchibisov commented 5 months ago

I guess if you can place the library next to your binary and name it like that it'll just load it.

Though, we don't have a way to set a any variable to alter dynamic loading.

kchibisov commented 5 months ago

Maybe we should add a GLUTIN_WGL_OPENGL_DLL or something like that, but given that you can rename it could work just fine with put next to binary.

CCnut commented 5 months ago

I want opengl32.dll and opengl32sw.dll to coexist and be switchable to opengl32sw.dll when needed.