-debug
enables ERROR_LOGGING and CONTEXT_CHECKING
This commit is contained in:
parent
c1d3240da6
commit
6591ed97aa
@ -46,6 +46,8 @@ if "-log" in sys.argv:
|
||||
if "-debug" not in sys.argv:
|
||||
OpenGL.ERROR_CHECKING = False
|
||||
else:
|
||||
OpenGL.ERROR_LOGGING = True
|
||||
OpenGL.CONTEXT_CHECKING = True
|
||||
while "-debug" in sys.argv:
|
||||
sys.argv.remove('-debug')
|
||||
print("GL Errors enabled!")
|
||||
|
Reference in New Issue
Block a user