DXGL r399 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r398
|
r399
|
r400
>
Date:
00:23, 5 August 2013
Author:
admin
Status:
new
Tags:
Comment:
Move generated shader revision number to common version header.
Modified paths:
/common/version.h.in
(modified) (
history
)
/ddraw/shadergen.cpp
(modified) (
history
)
/ddraw/shadergen2d.cpp
(modified) (
history
)
Diff
[
purge
]
Index: common/version.h.in
—
—
@@ -11,5 +11,7 @@
12
12
#define DXGLVERQWORD (((unsigned __int64)DXGLMAJOR<<48)+((unsigned __int64)DXGLMINOR<<32)+((unsigned __int64)DXGLPOINT<<16)+(unsigned __int64)DXGLBUILD)
13
13
#define DXGLVERSTRING $VERSTRING
14
14
15
+#define SHADER2DVERSION 1
16
+#define SHADER3DVERSION 1
15
17
16
18
#endif //__VERSION_H
Index: ddraw/shadergen.cpp
—
—
@@ -25,6 +25,7 @@
26
26
using namespace std;
27
27
#include "shadergen.h"
28
28
#include "shaders.h"
29
+#include "../common/version.h"
29
30
30
31
GenShader *genshaders = NULL;
31
32
static __int64 current_shader = 0;
—
—
@@ -225,9 +226,8 @@
226
227
}
227
228
228
229
229
-#define REVISION 1
230
230
static const char header[] =
231
- "//REV" STR(REVISION) "\n\
231
+ "//REV" STR(SHADER3DVERSION) "\n\
232
232
#version 110\n";
233
233
static const char vertexshader[] = "//Vertex Shader\n";
234
234
static const char fragshader[] = "//Fragment Shader\n";
Index: ddraw/shadergen2d.cpp
—
—
@@ -16,6 +16,7 @@
17
17
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
#include "common.h"
19
19
#include "shadergen2d.h"
20
+#include "../common/version.h"
20
21
21
22
/* Bits in 2D shader ID:
22
23
Bit 0: Use destination alpha (DDBLT_ALPHADEST)
—
—
@@ -122,9 +123,8 @@
123
124
0x00000000
124
125
};
125
126
126
-#define REVISION 1
127
127
static const char header[] =
128
- "//REV" STR(REVISION) "\n\
128
+ "//REV" STR(SHADER2DVERSION) "\n\
129
129
#version 110\n";
130
130
static const char vertexshader[] = "//2D Vertex Shader\n";
131
131
static const char fragshader[] = "//2D Fragment Shader\n";
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