DXGL r727 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r726‎ | r727 | r728 >
Date:04:11, 24 July 2017
Author:admin
Status:new
Tags:
Comment:
Implement debug options to disable Direct State Access extensions.
Modified paths:
  • /ddraw/glExtensions.c (modified) (history)
  • /dxgl-example.ini (modified) (history)

Diff [purge]

Index: ddraw/glExtensions.c
@@ -135,10 +135,12 @@
136136 if(strstr((char*)glextensions,"GL_ARB_ES2_compatibility") || (ext->glver_major >= 5)
137137 || ((ext->glver_major >= 4) && (ext->glver_minor >= 1))) ext->GLEXT_ARB_ES2_compatibility = 1;
138138 else ext->GLEXT_ARB_ES2_compatibility = 0;
139 - if(strstr((char*)glextensions,"GL_EXT_direct_state_access")) ext->GLEXT_EXT_direct_state_access = 1;
 139+ if(strstr((char*)glextensions,"GL_EXT_direct_state_access") && !dxglcfg.DebugNoExtDirectStateAccess)
 140+ ext->GLEXT_EXT_direct_state_access = 1;
140141 else ext->GLEXT_EXT_direct_state_access = 0;
141 - if (strstr((char*)glextensions, "GL_ARB_direct_state_access") || (ext->glver_major >= 5)
142 - || ((ext->glver_major >= 4) && (ext->glver_minor >= 5))) ext->GLEXT_ARB_direct_state_access = 1;
 142+ if ((strstr((char*)glextensions, "GL_ARB_direct_state_access") || (ext->glver_major >= 5)
 143+ || ((ext->glver_major >= 4) && (ext->glver_minor >= 5))) && !dxglcfg.DebugNoArbDirectStateAccess)
 144+ ext->GLEXT_ARB_direct_state_access = 1;
143145 else ext->GLEXT_ARB_direct_state_access = 0;
144146 if (strstr((char*)glextensions, "GL_ARB_sampler_objects") || (ext->glver_major >= 4)
145147 || ((ext->glver_major >= 3) && (ext->glver_minor >= 3))) ext->GLEXT_ARB_sampler_objects = 1;
Index: dxgl-example.ini
@@ -1,6 +1,7 @@
22 ; Example configuration for DXGL
33 ; Place in the same folder as a game or application and rename to dxgl.ini
44 ; in order to pre-set profile settings for the game or application.
 5+; Remove or comment out options to allow the registry settings to be used.
56
67 [system]
78 ; NoWriteRegistry - Boolean