Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
78cfba97
Commit
78cfba97
authored
Mar 14, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix location of #defines for core and compatibility profile.
These were recently added for all profiles, versus just desktop.
parent
601b7fa4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
+10
-15
revision.h
glslang/Include/revision.h
+2
-2
Versions.cpp
glslang/MachineIndependent/Versions.cpp
+8
-13
No files found.
glslang/Include/revision.h
View file @
78cfba97
...
...
@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "Overload400-PrecQual.190
7
"
#define GLSLANG_DATE "1
3
-Mar-2017"
#define GLSLANG_REVISION "Overload400-PrecQual.190
8
"
#define GLSLANG_DATE "1
4
-Mar-2017"
glslang/MachineIndependent/Versions.cpp
View file @
78cfba97
...
...
@@ -324,6 +324,14 @@ void TParseVersions::getPreamble(std::string& preamble)
"#define GL_NV_viewport_array2 1
\n
"
#endif
;
if
(
version
>=
150
)
{
// define GL_core_profile and GL_compatibility_profile
preamble
+=
"#define GL_core_profile 1
\n
"
;
if
(
profile
==
ECompatibilityProfile
)
preamble
+=
"#define GL_compatibility_profile 1
\n
"
;
}
}
// #line and #include
...
...
@@ -332,19 +340,6 @@ void TParseVersions::getPreamble(std::string& preamble)
"#define GL_GOOGLE_include_directive 1
\n
"
;
if
(
version
>=
150
)
{
// define GL_core_profile and GL_compatibility_profile
preamble
+=
"#define GL_core_profile 1
\n
"
;
if
(
profile
==
ECompatibilityProfile
)
{
preamble
+=
"#define GL_compatibility_profile 1
\n
"
;
}
}
// #define VULKAN XXXX
const
int
numberBufSize
=
12
;
char
numberBuf
[
numberBufSize
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment