DXGL r728 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
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 @@
133
133
else ext->GLEXT_NVX_gpu_memory_info = 0;
134
134
if(strstr((char*)glextensions,"GL_ATI_meminfo")) ext->GLEXT_ATI_meminfo = 1;
135
135
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;
138
139
else ext->GLEXT_ARB_ES2_compatibility = 0;
139
140
if(strstr((char*)glextensions,"GL_EXT_direct_state_access") && !dxglcfg.DebugNoExtDirectStateAccess)
140
141
ext->GLEXT_EXT_direct_state_access = 1;
—
—
@@ -142,8 +143,9 @@
143
144
|| ((ext->glver_major >= 4) && (ext->glver_minor >= 5))) && !dxglcfg.DebugNoArbDirectStateAccess)
144
145
ext->GLEXT_ARB_direct_state_access = 1;
145
146
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;
148
150
else ext->GLEXT_ARB_sampler_objects = 0;
149
151
if(strstr((char*)glextensions,"GL_EXT_gpu_shader4")) ext->GLEXT_EXT_gpu_shader4 = 1;
150
152
else ext->GLEXT_EXT_gpu_shader4 = 0;
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