From 02de4658e52c8c14de2e469f716ee7d0fb28b58c Mon Sep 17 00:00:00 2001 From: Azaezel Date: Thu, 12 Feb 2015 14:31:10 -0600 Subject: [PATCH 1/2] 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); From 43e08263085d8d166c5322031c9d07e931d96995 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Thu, 12 Feb 2015 14:47:39 -0600 Subject: [PATCH 2/2] reordered by request --- Engine/source/gfx/gl/gfxGLDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gfx/gl/gfxGLDevice.cpp b/Engine/source/gfx/gl/gfxGLDevice.cpp index c5c87ee07..ef581ef73 100644 --- a/Engine/source/gfx/gl/gfxGLDevice.cpp +++ b/Engine/source/gfx/gl/gfxGLDevice.cpp @@ -152,10 +152,10 @@ void GFXGLDevice::initGLState() glBindFramebuffer = &_t3d_glBindFramebuffer; } -#if TORQUE_DEBUG #ifdef TORQUE_NSIGHT_WORKAROUND __GLEW_ARB_buffer_storage = false; #endif +#if TORQUE_DEBUG if( gglHasExtension(ARB_debug_output) ) { glEnable(GL_DEBUG_OUTPUT);