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
c074f2bc
Commit
c074f2bc
authored
Dec 19, 2017
by
LoopDawg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g++ 5.4.0 suspected defect workaround
Fix compilation error under g++ 5.4.0.
parent
3f0d4bcd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+6
-3
No files found.
glslang/MachineIndependent/ParseHelper.cpp
View file @
c074f2bc
...
...
@@ -1388,7 +1388,8 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
// Figure out which variants are allowed by what extensions,
// and what arguments must be constant for which situations.
featureString
=
fnCandidate
.
getName
()
+
"(...)"
;
featureString
=
fnCandidate
.
getName
();
featureString
+=
"(...)"
;
feature
=
featureString
.
c_str
();
profileRequires
(
loc
,
EEsProfile
,
310
,
nullptr
,
feature
);
int
compArg
=
-
1
;
// track which argument, if any, is the constant component argument
...
...
@@ -1445,7 +1446,8 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
bias
=
fnCandidate
.
getParamCount
()
>
4
;
if
(
bias
)
{
featureString
=
fnCandidate
.
getName
()
+
"with bias argument"
;
featureString
=
fnCandidate
.
getName
();
featureString
+=
"with bias argument"
;
feature
=
featureString
.
c_str
();
profileRequires
(
loc
,
~
EEsProfile
,
450
,
nullptr
,
feature
);
requireExtensions
(
loc
,
1
,
&
E_GL_AMD_texture_gather_bias_lod
,
feature
);
...
...
@@ -1468,7 +1470,8 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
bias
=
fnCandidate
.
getParamCount
()
>
5
;
if
(
bias
)
{
featureString
=
fnCandidate
.
getName
()
+
"with bias argument"
;
featureString
=
fnCandidate
.
getName
();
featureString
+=
"with bias argument"
;
feature
=
featureString
.
c_str
();
profileRequires
(
loc
,
~
EEsProfile
,
450
,
nullptr
,
feature
);
requireExtensions
(
loc
,
1
,
&
E_GL_AMD_texture_gather_bias_lod
,
feature
);
...
...
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