evas/gl: Bind texture with external target for tbm 37/52237/2
authorJoogab Yun <joogab.yun@samsung.com>
Fri, 20 Nov 2015 05:55:43 +0000 (14:55 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Wed, 25 Nov 2015 06:15:22 +0000 (22:15 -0800)
commit3b5b553e7beda756d6f61e36a88e4af9370235f0
treefa24b3018842e12fcf8ff078d07baec1d2b7eb48
parent43c260c2047215927406351dd04c42ff7ddbe205
evas/gl: Bind texture with external target for tbm
 surface

egl images created using tbm surface for native surface set use
GL_TEXTURE_EXTERNAL_OES as texture target, so we should bind to
this target when rendering.
Dynamic hint set using tbm surface also creates egl images, but
as we only use RGB* colorspace for this we can use GL_TEXTURE_2D.
So, keep track of texture target in shader array, and bind to the
appropriate one.
This also fixes the bug that image_data_get only worked when BOTH
sec_image_map and sec_tbm_surface extensions are supported.

From 7db0e2066108c2ee78afd317727b581d1d7e8342 Mon Sep 17 00:00:00 2001
From: Dongyeon Kim <dy5.kim@samsung.com>

Change-Id: Iab9437f0119025d7b97223f8b12e723a2e336771
src/modules/evas/engines/gl_common/evas_gl_common.h
src/modules/evas/engines/gl_common/evas_gl_context.c [changed mode: 0644->0755]
src/modules/evas/engines/gl_common/evas_gl_texture.c
src/modules/evas/engines/gl_generic/evas_engine.c
src/modules/evas/engines/gl_x11/evas_engine.c