Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Glow
glow
Commits
2fcea5fc
Commit
2fcea5fc
authored
May 27, 2019
by
Jonathan Kunstwald
Committed by
Philip Trettner
May 27, 2019
Browse files
Suppress warnings for unchanged OpenGL identifiers
parent
f32e8ec9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/glow/objects/Program.cc
View file @
2fcea5fc
...
...
@@ -490,6 +490,10 @@ void Program::link(bool saveUniformState)
glGetActiveUniform
(
mObjectName
,
GLuint
(
i
),
sizeof
(
uniformName
),
&
length
,
&
size
,
&
type
,
uniformName
);
std
::
string
uniformNameStd
=
uniformName
;
// Skip reserved identifiers
if
(
uniformNameStd
.
find
(
"gl_"
)
==
0
)
continue
;
// Cut down uArray[0] to uArray
auto
const
bracketPos
=
uniformNameStd
.
find
(
'['
);
if
(
bracketPos
!=
std
::
string
::
npos
)
...
...
Write
Preview
Supports
Markdown
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