mirror of
https://github.com/mupen64plus/mupen64plus-ui-python.git
synced 2025-04-02 10:51:53 -04:00
Move nvidia hack before import from QtOpenGL
This commit is contained in:
parent
588fda8cd6
commit
a771c8b2b7
1 changed files with 5 additions and 5 deletions
|
@ -16,11 +16,6 @@
|
|||
|
||||
import ctypes
|
||||
|
||||
from PyQt5.QtOpenGL import QGLFormat
|
||||
|
||||
from sdl2 import SDL_WasInit, SDL_InitSubSystem, SDL_QuitSubSystem, SDL_INIT_VIDEO
|
||||
from sdl2 import SDL_GetNumDisplayModes, SDL_DisplayMode, SDL_GetDisplayMode
|
||||
|
||||
try:
|
||||
# nvidia hack
|
||||
from OpenGL import GL
|
||||
|
@ -28,6 +23,11 @@ try:
|
|||
except ImportError:
|
||||
glimport = False
|
||||
|
||||
from PyQt5.QtOpenGL import QGLFormat
|
||||
|
||||
from sdl2 import SDL_WasInit, SDL_InitSubSystem, SDL_QuitSubSystem, SDL_INIT_VIDEO
|
||||
from sdl2 import SDL_GetNumDisplayModes, SDL_DisplayMode, SDL_GetDisplayMode
|
||||
|
||||
from m64py.core.defs import *
|
||||
from m64py.frontend.log import log
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue