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
850ac062
Commit
850ac062
authored
Oct 26, 2016
by
John Kessenich
Committed by
GitHub
Oct 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #561 from jeremy-lunarg/unused
GLSL: apply unused variable
parents
0d628c17
c8e60e28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+2
-2
No files found.
glslang/MachineIndependent/ParseHelper.cpp
View file @
850ac062
...
@@ -1216,7 +1216,7 @@ void TParseContext::computeBuiltinPrecisions(TIntermTyped& node, const TFunction
...
@@ -1216,7 +1216,7 @@ void TParseContext::computeBuiltinPrecisions(TIntermTyped& node, const TFunction
function
.
getType
().
getQualifier
().
precision
;
function
.
getType
().
getQualifier
().
precision
;
}
else
if
(
TIntermAggregate
*
agg
=
node
.
getAsAggregate
())
{
}
else
if
(
TIntermAggregate
*
agg
=
node
.
getAsAggregate
())
{
TIntermSequence
&
sequence
=
agg
->
getSequence
();
TIntermSequence
&
sequence
=
agg
->
getSequence
();
int
numArgs
=
(
int
)
sequence
.
size
();
unsigned
int
numArgs
=
(
unsigned
int
)
sequence
.
size
();
switch
(
agg
->
getOp
())
{
switch
(
agg
->
getOp
())
{
case
EOpBitfieldExtract
:
case
EOpBitfieldExtract
:
numArgs
=
1
;
numArgs
=
1
;
...
@@ -1233,7 +1233,7 @@ void TParseContext::computeBuiltinPrecisions(TIntermTyped& node, const TFunction
...
@@ -1233,7 +1233,7 @@ void TParseContext::computeBuiltinPrecisions(TIntermTyped& node, const TFunction
break
;
break
;
}
}
// find the maximum precision from the arguments and parameters
// find the maximum precision from the arguments and parameters
for
(
unsigned
int
arg
=
0
;
arg
<
sequence
.
size
()
;
++
arg
)
{
for
(
unsigned
int
arg
=
0
;
arg
<
numArgs
;
++
arg
)
{
operationPrecision
=
std
::
max
(
operationPrecision
,
sequence
[
arg
]
->
getAsTyped
()
->
getQualifier
().
precision
);
operationPrecision
=
std
::
max
(
operationPrecision
,
sequence
[
arg
]
->
getAsTyped
()
->
getQualifier
().
precision
);
operationPrecision
=
std
::
max
(
operationPrecision
,
function
[
arg
].
type
->
getQualifier
().
precision
);
operationPrecision
=
std
::
max
(
operationPrecision
,
function
[
arg
].
type
->
getQualifier
().
precision
);
}
}
...
...
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