DXGL r729 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r728‎ | r729 | r730 >
Date:04:21, 24 July 2017
Author:admin
Status:new
Tags:
Comment:
Implement debug option to disable EXT_gpu_shader4 extension on OpenGL 2.x devices.
Modified paths:
  • /ddraw/glExtensions.c (modified) (history)

Diff [purge]

Index: ddraw/glExtensions.c
@@ -147,7 +147,8 @@
148148 || ((ext->glver_major >= 3) && (ext->glver_minor >= 3))) && !dxglcfg.DebugNoSamplerObjects)
149149 ext->GLEXT_ARB_sampler_objects = 1;
150150 else ext->GLEXT_ARB_sampler_objects = 0;
151 - if(strstr((char*)glextensions,"GL_EXT_gpu_shader4")) ext->GLEXT_EXT_gpu_shader4 = 1;
 151+ if(strstr((char*)glextensions,"GL_EXT_gpu_shader4") && !dxglcfg.DebugNoGpuShader4)
 152+ ext->GLEXT_EXT_gpu_shader4 = 1;
152153 else ext->GLEXT_EXT_gpu_shader4 = 0;
153154 if(strstr((char*)glextensions,"GL_GREMEDY_frame_terminator")) ext->GLEXT_GREMEDY_frame_terminator = 1;
154155 else ext->GLEXT_GREMEDY_frame_terminator = 0;