summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2010-10-12 13:13:09 -0700
committer Romain Guy <romainguy@google.com> 2010-10-12 13:13:09 -0700
commit9db91243c5ace4421091557b76a0b1cbd2312fec (patch)
tree7fc21b5c4942c98e092fe376525fd3194700be84 /libs/hwui/ProgramCache.cpp
parenta3496a9e6011e73deadd33bd0edd9229512e23d3 (diff)
Simplify black texture fragment shader.
Change-Id: If2d43f92f4c98ec128692761a670b0f31207a3c0
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
-rw-r--r--libs/hwui/ProgramCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/ProgramCache.cpp b/libs/hwui/ProgramCache.cpp
index 1282b7102788..1eac2393422e 100644
--- a/libs/hwui/ProgramCache.cpp
+++ b/libs/hwui/ProgramCache.cpp
@@ -136,7 +136,7 @@ const char* gFS_Fast_SingleModulateTexture =
"}\n\n";
const char* gFS_Fast_SingleA8Texture =
"\nvoid main(void) {\n"
- " gl_FragColor = vec4(0.0, 0.0, 0.0, texture2D(sampler, outTexCoords).a);\n"
+ " gl_FragColor = texture2D(sampler, outTexCoords);\n"
"}\n\n";
const char* gFS_Fast_SingleModulateA8Texture =
"\nvoid main(void) {\n"
@@ -162,7 +162,7 @@ const char* gFS_Main_FetchTexture[2] = {
};
const char* gFS_Main_FetchA8Texture[2] = {
// Don't modulate
- " fragColor = vec4(0.0, 0.0, 0.0, texture2D(sampler, outTexCoords).a);\n",
+ " fragColor = texture2D(sampler, outTexCoords);\n",
// Modulate
" fragColor = color * texture2D(sampler, outTexCoords).a;\n"
};