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
3d581a89
Commit
3d581a89
authored
Nov 25, 2009
by
Alexander Wiebel
Browse files
[FIX] meaningfull error message when parsing wrong syntax in include
statement of shader
parent
97238d1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/graphicsEngine/WShader.cpp
src/graphicsEngine/WShader.cpp
+2
-0
No files found.
src/graphicsEngine/WShader.cpp
View file @
3d581a89
...
...
@@ -32,6 +32,7 @@
#include <boost/tokenizer.hpp>
#include "WShader.h"
#include "../common/WLogger.h"
WShader
::
WShader
()
{
...
...
@@ -137,6 +138,7 @@ std::string WShader::getIncludeFileName( std::string line )
}
if
(
count
<
2
)
{
WLogger
::
getLogger
()
->
addLogMessage
(
"Missing quotes around file name in include statement of shader."
,
"Marching Cubes"
,
LL_ERROR
);
// TODO(schurade): here we could throw an exception
return
0
;
}
...
...
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