mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
revised torque_nsight_workaround
This commit is contained in:
parent
963ef1ecdb
commit
47366068c1
2 changed files with 4 additions and 3 deletions
|
|
@ -66,7 +66,11 @@ void GFXGLCardProfiler::setupCardCapabilities()
|
||||||
setCapability("GL_EXT_texture_filter_anisotropic", gglHasExtension(EXT_texture_filter_anisotropic));
|
setCapability("GL_EXT_texture_filter_anisotropic", gglHasExtension(EXT_texture_filter_anisotropic));
|
||||||
|
|
||||||
// Check for buffer storage
|
// Check for buffer storage
|
||||||
|
#ifdef TORQUE_NSIGHT_WORKAROUND
|
||||||
|
setCapability("GL_ARB_buffer_storage", false);
|
||||||
|
#else
|
||||||
setCapability("GL_ARB_buffer_storage", gglHasExtension(ARB_buffer_storage));
|
setCapability("GL_ARB_buffer_storage", gglHasExtension(ARB_buffer_storage));
|
||||||
|
#endif
|
||||||
|
|
||||||
// Check for shader model 5.0
|
// Check for shader model 5.0
|
||||||
setCapability("GL_ARB_gpu_shader5", gglHasExtension(ARB_gpu_shader5));
|
setCapability("GL_ARB_gpu_shader5", gglHasExtension(ARB_gpu_shader5));
|
||||||
|
|
|
||||||
|
|
@ -165,9 +165,6 @@ void GFXGLDevice::initGLState()
|
||||||
glBindFramebuffer = &_t3d_glBindFramebuffer;
|
glBindFramebuffer = &_t3d_glBindFramebuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TORQUE_NSIGHT_WORKAROUND
|
|
||||||
__GLEW_ARB_buffer_storage = false;
|
|
||||||
#endif
|
|
||||||
#if TORQUE_DEBUG
|
#if TORQUE_DEBUG
|
||||||
if( gglHasExtension(ARB_debug_output) )
|
if( gglHasExtension(ARB_debug_output) )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue