| ▲ | voxic11 5 days ago | |
OpenGL doesn't have any way to do this except sometimes via vendor specific extensions. Basically how OpenGL works is it creates the graphics context on whichever device the system hands it. So you can configure the GPU used by OpenGL on the system level but not at the application level. | ||
| ▲ | FrostKiwi 5 hours ago | parent | next [-] | |
FYI, setting `NvOptimusEnablement` and `AmdPowerXpressRequestHighPerformance` have been the canonical way on Windows, `__NV_PRIME_RENDER_OFFLOAD` + `__GLX_VENDOR_LIBRARY_NAME` on Linux. Though not an OpenGL feature per se, as you mentioned. | ||
| ▲ | pjmlp 6 hours ago | parent | prev [-] | |
It does so via the respective OS way on how to create OpenGL context. | ||