Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
47719783
Commit
47719783
authored
Nov 30, 2010
by
Roberto Raggi
Browse files
Don't skip gl_* symbols.
parent
f7d46445
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/glsl/glslsemantic.cpp
View file @
47719783
...
...
@@ -187,7 +187,7 @@ bool Semantic::visit(IdentifierExpressionAST *ast)
if
(
Symbol
*
s
=
_scope
->
lookup
(
*
ast
->
name
))
{
_expr
.
type
=
s
->
type
();
}
else
{
if
(
ast
->
name
->
startsWith
(
QLatin1String
(
"gl_"
))
||
ast
->
name
->
startsWith
(
QLatin1String
(
"qgl_"
)))
{
if
(
ast
->
name
->
startsWith
(
QLatin1String
(
"qgl_"
)))
{
// ### well, at least for now.
}
else
{
_engine
->
error
(
ast
->
lineno
,
QString
(
"`%1' was not declared in this scope"
).
arg
(
*
ast
->
name
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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