Skip to content

Commit a771c8b

Browse files
committed
Move nvidia hack before import from QtOpenGL
1 parent 588fda8 commit a771c8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/m64py/core/vidext.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616

1717
import ctypes
1818

19-
from PyQt5.QtOpenGL import QGLFormat
20-
21-
from sdl2 import SDL_WasInit, SDL_InitSubSystem, SDL_QuitSubSystem, SDL_INIT_VIDEO
22-
from sdl2 import SDL_GetNumDisplayModes, SDL_DisplayMode, SDL_GetDisplayMode
23-
2419
try:
2520
# nvidia hack
2621
from OpenGL import GL
2722
glimport = True
2823
except ImportError:
2924
glimport = False
3025

26+
from PyQt5.QtOpenGL import QGLFormat
27+
28+
from sdl2 import SDL_WasInit, SDL_InitSubSystem, SDL_QuitSubSystem, SDL_INIT_VIDEO
29+
from sdl2 import SDL_GetNumDisplayModes, SDL_DisplayMode, SDL_GetDisplayMode
30+
3131
from m64py.core.defs import *
3232
from m64py.frontend.log import log
3333

0 commit comments

Comments
 (0)