aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksandr Shcherbina <o.shcherbina@samsung.com>2015-03-31 08:34:32 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-03-31 08:35:51 +0900
commit4af7a947a6fe1834d3fb5a8af3cd73196d237f74 (patch)
tree86f437a07cbbd446e282bcf88bab2597a361ffd7
parentedje: force NULL initialization of desc pointer. (diff)
downloadefl-4af7a947a6fe1834d3fb5a8af3cd73196d237f74.tar.gz
Evas 3D: Fix shadow map shader
Summary: Silly mistake after this b9b5ced501f4642f03d8bcc8441fd3f7b55a7f52 commit. Seems uninitialized components of vector gl_FragColor Reviewers: cedric, Hermet, jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2258
-rw-r--r--src/modules/evas/engines/gl_common/shader_3d/evas_gl_3d_shaders.x2
-rw-r--r--src/modules/evas/engines/gl_common/shader_3d/shadow_map_frag.shd2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_common/shader_3d/evas_gl_3d_shaders.x b/src/modules/evas/engines/gl_common/shader_3d/evas_gl_3d_shaders.x
index eaf7ece7c9..2987ff330e 100644
--- a/src/modules/evas/engines/gl_common/shader_3d/evas_gl_3d_shaders.x
+++ b/src/modules/evas/engines/gl_common/shader_3d/evas_gl_3d_shaders.x
@@ -1188,7 +1188,7 @@ static const char const shadow_map_frag_glsl[] =
"#endif //DIFFUSE_TEXTURE\n"
"#endif //DIFFUSE_TEXTURE_BLEND\n"
"#endif //ALPHA_TEST_ENABLED\n"
- " gl_FragColor.r = gl_FragCoord.z;\n"
+ " gl_FragColor = vec4(gl_FragCoord.z);\n"
"}\n";
static const char const color_pick_vert_glsl[] =
diff --git a/src/modules/evas/engines/gl_common/shader_3d/shadow_map_frag.shd b/src/modules/evas/engines/gl_common/shader_3d/shadow_map_frag.shd
index 66a88ad889..babc448399 100644
--- a/src/modules/evas/engines/gl_common/shader_3d/shadow_map_frag.shd
+++ b/src/modules/evas/engines/gl_common/shader_3d/shadow_map_frag.shd
@@ -36,5 +36,5 @@ void main() {
#endif //ALPHA_TEST_ENABLED
- gl_FragColor.r = gl_FragCoord.z;
+ gl_FragColor = vec4(gl_FragCoord.z);
}