From 02de4658e52c8c14de2e469f716ee7d0fb28b58c Mon Sep 17 00:00:00 2001 From: Azaezel Date: Thu, 12 Feb 2015 14:31:10 -0600 Subject: [PATCH] nvidia nsight debugger support. requires defining the TORQUE_NSIGHT_WORKAROUND preprocessor macro --- Engine/source/gfx/gl/gfxGLDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Engine/source/gfx/gl/gfxGLDevice.cpp b/Engine/source/gfx/gl/gfxGLDevice.cpp index b3e3badbc..c5c87ee07 100644 --- a/Engine/source/gfx/gl/gfxGLDevice.cpp +++ b/Engine/source/gfx/gl/gfxGLDevice.cpp @@ -153,6 +153,9 @@ void GFXGLDevice::initGLState() } #if TORQUE_DEBUG +#ifdef TORQUE_NSIGHT_WORKAROUND + __GLEW_ARB_buffer_storage = false; +#endif if( gglHasExtension(ARB_debug_output) ) { glEnable(GL_DEBUG_OUTPUT);