Skip to content

Commit

Permalink
[GL3+] Fix issue with EGL_HEADLESS and NVIDIA cards (Linux)
Browse files Browse the repository at this point in the history
If NVIDIA drivers were installed, the first NV card would always take
preference even if another card had been chosen (i.e. even SW Mesa
selection was being overriden)

This also fixes GLX failing to launch if all the following conditions
were true:
- Non NV card is primary GLX / X Server
- Ogre was build with both GLX and EGL support
- GLX Interface was chosen
  • Loading branch information
darksylinc committed Feb 6, 2021
1 parent 97e60fb commit 0e0c47e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ namespace Ogre

if( deviceData.eglCtx )
{
eglMakeCurrent( deviceData.eglDisplay, 0, 0, 0 );
eglDestroyContext( deviceData.eglDisplay, deviceData.eglCtx );
deviceData.eglCtx = 0;
}
Expand Down

0 comments on commit 0e0c47e

Please sign in to comment.