projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a6e311
)
Fix build android ndk r16b
author
nihui
<shuizhuyuanluo@126.com>
Sat, 12 Sep 2020 02:04:36 +0000
(10:04 +0800)
committer
GitHub
<noreply@github.com>
Sat, 12 Sep 2020 02:04:36 +0000
(10:04 +0800)
glslang/MachineIndependent/ParseHelper.cpp
patch
|
blob
|
history
diff --git
a/glslang/MachineIndependent/ParseHelper.cpp
b/glslang/MachineIndependent/ParseHelper.cpp
index
4d20226
..
36e3715
100644
(file)
--- a/
glslang/MachineIndependent/ParseHelper.cpp
+++ b/
glslang/MachineIndependent/ParseHelper.cpp
@@
-5417,7
+5417,7
@@
void TParseContext::setLayoutQualifier(const TSourceLoc& loc, TPublicType& publi
if (! IsPow2(value))
error(loc, "must be a power of 2", "buffer_reference_align", "");
else
- publicType.qualifier.layoutBufferReferenceAlign = (unsigned int)
std::
log2(value);
+ publicType.qualifier.layoutBufferReferenceAlign = (unsigned int)log2(value);
if (nonLiteral)
error(loc, "needs a literal integer", "buffer_reference_align", "");
return;