DXGL r728 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r727‎ | r728 | r729 >
Date:04:17, 24 July 2017
Author:admin
Status:new
Tags:
Comment:
Implement debug options to disable OpenGL ES2 compatibility (565 textures) and sampler objects.
Modified paths:
  • /ddraw/glExtensions.c (modified) (history)

Diff [purge]

Index: ddraw/glExtensions.c
@@ -132,8 +132,9 @@
133133 else ext->GLEXT_NVX_gpu_memory_info = 0;
134134 if(strstr((char*)glextensions,"GL_ATI_meminfo")) ext->GLEXT_ATI_meminfo = 1;
135135 else ext->GLEXT_ATI_meminfo = 0;
136 - if(strstr((char*)glextensions,"GL_ARB_ES2_compatibility") || (ext->glver_major >= 5)
137 - || ((ext->glver_major >= 4) && (ext->glver_minor >= 1))) ext->GLEXT_ARB_ES2_compatibility = 1;
 136+ if((strstr((char*)glextensions,"GL_ARB_ES2_compatibility") || (ext->glver_major >= 5)
 137+ || ((ext->glver_major >= 4) && (ext->glver_minor >= 1))) && !dxglcfg.DebugNoES2Compatibility)
 138+ ext->GLEXT_ARB_ES2_compatibility = 1;
138139 else ext->GLEXT_ARB_ES2_compatibility = 0;
139140 if(strstr((char*)glextensions,"GL_EXT_direct_state_access") && !dxglcfg.DebugNoExtDirectStateAccess)
140141 ext->GLEXT_EXT_direct_state_access = 1;
@@ -142,8 +143,9 @@
143144 || ((ext->glver_major >= 4) && (ext->glver_minor >= 5))) && !dxglcfg.DebugNoArbDirectStateAccess)
144145 ext->GLEXT_ARB_direct_state_access = 1;
145146 else ext->GLEXT_ARB_direct_state_access = 0;
146 - if (strstr((char*)glextensions, "GL_ARB_sampler_objects") || (ext->glver_major >= 4)
147 - || ((ext->glver_major >= 3) && (ext->glver_minor >= 3))) ext->GLEXT_ARB_sampler_objects = 1;
 147+ if ((strstr((char*)glextensions, "GL_ARB_sampler_objects") || (ext->glver_major >= 4)
 148+ || ((ext->glver_major >= 3) && (ext->glver_minor >= 3))) && !dxglcfg.DebugNoSamplerObjects)
 149+ ext->GLEXT_ARB_sampler_objects = 1;
148150 else ext->GLEXT_ARB_sampler_objects = 0;
149151 if(strstr((char*)glextensions,"GL_EXT_gpu_shader4")) ext->GLEXT_EXT_gpu_shader4 = 1;
150152 else ext->GLEXT_EXT_gpu_shader4 = 0;