summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMinkyoung Kim <mer.kim@samsung.com>2015-02-16 11:54:23 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-16 11:54:27 +0100
commitc972994e01aafc2e9408cbd8abea00a35f139e32 (patch)
treed6f55ac51663771c8d0f4b275e05d7adbaaa2448 /src
parent87a5388919385ba489626797806f1618e3207111 (diff)
evas: Evas GL - add glGetError() after surface capability test.
Summary: After using gl funcs, must call glGetError(). To prevent wrong error catch for subsequent glGetError(). Test Plan: Local tests Reviewers: raster, jpeg, Hermet, cedric Reviewed By: cedric Subscribers: spacegrapher, wonsik, cedric Differential Revision: https://phab.enlightenment.org/D1978 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_core.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c b/src/modules/evas/engines/gl_common/evas_gl_core.c
index ca37da49b8..d2078dd777 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.c
@@ -340,9 +340,13 @@ _fbo_surface_cap_test(GLint color_ifmt, GLenum color_fmt,
340 340
341 // Return the result 341 // Return the result
342 if (fb_status != GL_FRAMEBUFFER_COMPLETE) 342 if (fb_status != GL_FRAMEBUFFER_COMPLETE)
343 { 343 {
344 // Put Error Log... 344 int err = glGetError();
345 return 0; 345
346 if (err != GL_NO_ERROR)
347 DBG("glGetError() returns %x ", err);
348
349 return 0;
346 } 350 }
347 else 351 else
348 return 1; 352 return 1;