DXGL r727 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
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 @@
136
136
if(strstr((char*)glextensions,"GL_ARB_ES2_compatibility") || (ext->glver_major >= 5)
137
137
|| ((ext->glver_major >= 4) && (ext->glver_minor >= 1))) ext->GLEXT_ARB_ES2_compatibility = 1;
138
138
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;
140
141
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;
143
145
else ext->GLEXT_ARB_direct_state_access = 0;
144
146
if (strstr((char*)glextensions, "GL_ARB_sampler_objects") || (ext->glver_major >= 4)
145
147
|| ((ext->glver_major >= 3) && (ext->glver_minor >= 3))) ext->GLEXT_ARB_sampler_objects = 1;
Index: dxgl-example.ini
—
—
@@ -1,6 +1,7 @@
2
2
; Example configuration for DXGL
3
3
; Place in the same folder as a game or application and rename to dxgl.ini
4
4
; 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.
5
6
6
7
[system]
7
8
; NoWriteRegistry - Boolean
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version