DXGL r730 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r729
|
r730
|
r731
>
Date:
04:29, 24 July 2017
Author:
admin
Status:
new
Tags:
Comment:
Implement debug option to disable GLSL 1.30 support.
Modified paths:
/ddraw/ShaderGen2D.cpp
(modified) (
history
)
/ddraw/glDirectDraw.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/ShaderGen2D.cpp
—
—
@@ -1,5 +1,5 @@
2
2
// DXGL
3
-// Copyright (C) 2013-2016 William Feely
3
+// Copyright (C) 2013-2017 William Feely
4
4
5
5
// This library is free software; you can redistribute it and/or
6
6
// modify it under the terms of the GNU Lesser General Public
—
—
@@ -19,6 +19,7 @@
20
20
#include "glExtensions.h"
21
21
#include "ShaderGen2d.h"
22
22
#include "../common/version.h"
23
+extern "C" {extern DXGLCFG dxglcfg; }
23
24
24
25
25
26
/* Bits in 2D shader ID:
—
—
@@ -724,7 +725,7 @@
725
726
if (id & DDBLT_ROP)
726
727
{
727
728
rop = UnpackROPBits(id);
728
- if (gen->ext->glver_major >= 3)
729
+ if ((gen->ext->glver_major >= 3) && !dxglcfg.DebugNoGLSL130)
729
730
{
730
731
String_Append(vsrc, version_130);
731
732
intproc = TRUE;
—
—
@@ -797,7 +798,7 @@
798
799
String_Append(fsrc, revheader);
799
800
if (id & DDBLT_ROP)
800
801
{
801
- if (gen->ext->glver_major >= 3)
802
+ if ((gen->ext->glver_major >= 3) && !dxglcfg.DebugNoGLSL130)
802
803
{
803
804
String_Append(fsrc, version_130);
804
805
intproc = true;
Index: ddraw/glDirectDraw.cpp
—
—
@@ -1,5 +1,5 @@
2
2
// DXGL
3
-// Copyright (C) 2011-2016 William Feely
3
+// Copyright (C) 2011-2017 William Feely
4
4
5
5
// This library is free software; you can redistribute it and/or
6
6
// modify it under the terms of the GNU Lesser General Public
—
—
@@ -1302,7 +1302,7 @@
1303
1303
mode.dmSize = sizeof(DEVMODE);
1304
1304
EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &mode);
1305
1305
glRenderer_Init(tmprenderer, 16, 16, mode.dmBitsPerPel, false, mode.dmDisplayFrequency, hGLWnd, NULL, FALSE);
1306
- if (tmprenderer->ext->glver_major >= 3) fullrop = TRUE;
1306
+ if ((tmprenderer->ext->glver_major >= 3) && !dxglcfg.DebugNoGLSL130) fullrop = TRUE;
1307
1307
if (tmprenderer->ext->GLEXT_EXT_gpu_shader4) fullrop = TRUE;
1308
1308
glRenderer_Delete(tmprenderer);
1309
1309
free(tmprenderer);
—
—
@@ -1309,7 +1309,7 @@
1310
1310
}
1311
1311
else
1312
1312
{
1313
- if (renderer->ext->glver_major >= 3) fullrop = TRUE;
1313
+ if ((renderer->ext->glver_major >= 3) && !dxglcfg.DebugNoGLSL130) fullrop = TRUE;
1314
1314
if (renderer->ext->GLEXT_EXT_gpu_shader4) fullrop = TRUE;
1315
1315
}
1316
1316
if (fullrop)
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