projects
/
platform
/
upstream
/
VK-GL-CTS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bfa102
)
Fix bug in handling CRLF line endings in ShaderLibrary
author
Pyry Haulos
<phaulos@google.com>
Tue, 2 Dec 2014 23:29:08 +0000
(15:29 -0800)
committer
Pyry Haulos
<phaulos@google.com>
Tue, 2 Dec 2014 23:29:08 +0000
(15:29 -0800)
glsShaderLibrary.cpp failed to strip first empty line from shader strings
if .test file was using CRLF line endings. That was leading to further
issues later on.
Bug:
18595005
Change-Id: Ia783c2bed4c838877c80f7c51bcf3fb021b75c8f
modules/glshared/glsShaderLibrary.cpp
patch
|
blob
|
history
diff --git
a/modules/glshared/glsShaderLibrary.cpp
b/modules/glshared/glsShaderLibrary.cpp
index
386b16f
..
3d4d976
100644
(file)
--- a/
modules/glshared/glsShaderLibrary.cpp
+++ b/
modules/glshared/glsShaderLibrary.cpp
@@
-319,6
+319,7
@@
string ShaderParser::parseShaderSource (const char* str)
// Eat first empty line from beginning.
while (*p == ' ') p++;
+ if (*p == '\r') p++;
if (*p == '\n') p++;
while ((p[0] != '"') || (p[1] != '"'))