Merge pull request #1668 from Azaezel/revisedNsightWorkaround

revised torque_nsight_workaround
This commit is contained in:
Areloch 2016-06-30 20:40:58 -05:00 committed by GitHub
commit 35c4df3066
2 changed files with 4 additions and 3 deletions

View file

@ -66,7 +66,11 @@ void GFXGLCardProfiler::setupCardCapabilities()
setCapability("GL_EXT_texture_filter_anisotropic", gglHasExtension(EXT_texture_filter_anisotropic));
// Check for buffer storage
#ifdef TORQUE_NSIGHT_WORKAROUND
setCapability("GL_ARB_buffer_storage", false);
#else
setCapability("GL_ARB_buffer_storage", gglHasExtension(ARB_buffer_storage));
#endif
// Check for shader model 5.0
setCapability("GL_ARB_gpu_shader5", gglHasExtension(ARB_gpu_shader5));

View file

@ -165,9 +165,6 @@ void GFXGLDevice::initGLState()
glBindFramebuffer = &_t3d_glBindFramebuffer;
}
#ifdef TORQUE_NSIGHT_WORKAROUND
__GLEW_ARB_buffer_storage = false;
#endif
#if TORQUE_DEBUG
if( gglHasExtension(ARB_debug_output) )
{