-debug enables ERROR_LOGGING and CONTEXT_CHECKING

This commit is contained in:
David Vierra 2016-01-10 22:54:36 -10:00
parent c1d3240da6
commit 6591ed97aa

View File

@ -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!")