Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
97238d1a
Commit
97238d1a
authored
Nov 25, 2009
by
Alexander Wiebel
Browse files
[CHANGE] Allow commenting includes in shaders
parent
835cdd6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/graphicsEngine/WShader.cpp
src/graphicsEngine/WShader.cpp
+4
-0
No files found.
src/graphicsEngine/WShader.cpp
View file @
97238d1a
...
...
@@ -111,6 +111,10 @@ std::string WShader::readTextFile( std::string fileName )
bool
WShader
::
isIncludeLine
(
std
::
string
line
)
{
if
(
line
[
0
]
==
'/'
&&
line
[
1
]
==
'/'
)
{
return
false
;
// we encountered a comment
}
if
(
boost
::
find_first
(
line
,
"#include"
)
)
{
return
true
;
...
...
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