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
674014bf
Commit
674014bf
authored
Jan 24, 2013
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: version 100 does not accept the 'es' profile
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20316
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
62b51a2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
glslang.l
glslang/MachineIndependent/glslang.l
+11
-5
No files found.
glslang/MachineIndependent/glslang.l
View file @
674014bf
...
@@ -743,8 +743,8 @@ void SetProfile(EProfile profile)
...
@@ -743,8 +743,8 @@ void SetProfile(EProfile profile)
TParseContext& parseContext = *((TParseContext *)cpp->pC);
TParseContext& parseContext = *((TParseContext *)cpp->pC);
if (profile == ENoProfile) {
if (profile == ENoProfile) {
if (parseContext.version ==
100 || parseContext.version ==
300) {
if (parseContext.version == 300) {
CPPErrorToInfoLog("version
s 100 and 300 require specifying the es
profile");
CPPErrorToInfoLog("version
300 requires specifying the 'es'
profile");
parseContext.profile = ENoProfile;
parseContext.profile = ENoProfile;
} else if (parseContext.version >= FirstProfileVersion)
} else if (parseContext.version >= FirstProfileVersion)
parseContext.profile = ECoreProfile;
parseContext.profile = ECoreProfile;
...
@@ -752,13 +752,19 @@ void SetProfile(EProfile profile)
...
@@ -752,13 +752,19 @@ void SetProfile(EProfile profile)
parseContext.profile = ENoProfile;
parseContext.profile = ENoProfile;
} else {
} else {
// a profile was provided...
// a profile was provided...
if (parseContext.version == 100 || parseContext.version == 300) {
if (parseContext.version < 150) {
CPPErrorToInfoLog("versions before 150 do not allow a profile token");
if (parseContext.version == 100)
parseContext.profile = EEsProfile;
else
parseContext.profile = ENoProfile;
} else if (parseContext.version == 300) {
if (profile != EEsProfile)
if (profile != EEsProfile)
CPPErrorToInfoLog("
versions 100 and 300 only support the es profile");
CPPErrorToInfoLog("
only version 300 supports the es profile");
parseContext.profile = EEsProfile;
parseContext.profile = EEsProfile;
} else {
} else {
if (profile == EEsProfile) {
if (profile == EEsProfile) {
CPPErrorToInfoLog("only version
s 100 and 300 support
the es profile");
CPPErrorToInfoLog("only version
300 supports
the es profile");
if (parseContext.version >= FirstProfileVersion)
if (parseContext.version >= FirstProfileVersion)
parseContext.profile = ECoreProfile;
parseContext.profile = ECoreProfile;
else
else
...
...
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