summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmytro Dadyka <d.dadyka@samsung.com>2014-12-01 05:57:00 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-01 05:57:05 +0100
commit4366057dc640283d450701b828e48ff83e19f612 (patch)
tree3fbf9dda2e68c044f2cb13b9d707f9e490763810
parenta15ec56e4f947e098b7d841d8bc98c66717b4134 (diff)
evas: Evas_3D - fix depth texture size.
Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: cedric The texture used to store the depth map should be a single-channel texture. @fix Differential Revision: https://phab.enlightenment.org/D1713 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_3d.c b/src/modules/evas/engines/gl_common/evas_gl_3d.c
index a5e0a81..e061c52 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_3d.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_3d.c
@@ -431,7 +431,7 @@ e3d_drawable_new(int w, int h, int alpha, GLenum depth_format, GLenum stencil_fo
431 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); 431 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
432 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); 432 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
433 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); 433 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
434 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB16, w, h, 0, GL_RGB, GL_UNSIGNED_SHORT, 0); 434 glTexImage2D(GL_TEXTURE_2D, 0, GL_R16, w, h, 0, GL_RED, GL_UNSIGNED_SHORT, 0);
435 435
436 glGenFramebuffers(1, &fbo); 436 glGenFramebuffers(1, &fbo);
437 glBindFramebuffer(GL_FRAMEBUFFER, fbo); 437 glBindFramebuffer(GL_FRAMEBUFFER, fbo);