OSDN Git Service
(root)
/
android-x86
/
external-swiftshader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aba0a3
)
Fixed using pixel shader constants in pixel shaders instead of vertex shader constant...
author
Nicolas Capens
<capn@google.com>
Tue, 6 May 2014 20:38:19 +0000
(16:38 -0400)
committer
Nicolas Capens
<capn@google.com>
Tue, 6 May 2014 20:38:19 +0000
(16:38 -0400)
src/Shader/PixelRoutine.cpp
patch
|
blob
|
history
diff --git
a/src/Shader/PixelRoutine.cpp
b/src/Shader/PixelRoutine.cpp
index
1dd429e
..
2528a9c
100644
(file)
--- a/
src/Shader/PixelRoutine.cpp
+++ b/
src/Shader/PixelRoutine.cpp
@@
-5801,7
+5801,7
@@
namespace sw
}
else if(var.rel.type == Shader::PARAMETER_CONST)
{
- RValue<Float4> c = *Pointer<Float4>(r.data + OFFSET(DrawData,
v
s.c[var.rel.index]));
+ RValue<Float4> c = *Pointer<Float4>(r.data + OFFSET(DrawData,
p
s.c[var.rel.index]));
return RoundInt(Extract(c, 0)) * var.rel.scale;
}