Browse Source

nvidia nsight debugger support.
requires defining the TORQUE_NSIGHT_WORKAROUND preprocessor macro

Azaezel 10 years ago
parent
commit
02de4658e5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Engine/source/gfx/gl/gfxGLDevice.cpp

+ 3 - 0
Engine/source/gfx/gl/gfxGLDevice.cpp

@@ -153,6 +153,9 @@ void GFXGLDevice::initGLState()
    }
    }
 
 
 #if TORQUE_DEBUG
 #if TORQUE_DEBUG
+#ifdef TORQUE_NSIGHT_WORKAROUND
+   __GLEW_ARB_buffer_storage = false;
+#endif
    if( gglHasExtension(ARB_debug_output) )
    if( gglHasExtension(ARB_debug_output) )
    {
    {
       glEnable(GL_DEBUG_OUTPUT);
       glEnable(GL_DEBUG_OUTPUT);