summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_texture.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-12-17 18:04:06 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-01-05 15:43:44 +0900
commitdc4790e08ba8bd239e499227881ba8b7c95c127e (patch)
tree31ddc62791570ebffb26c686188378dff5f0947c /src/modules/evas/engines/gl_common/evas_gl_texture.c
parenteda13b729851605615032a4af400de9b820e2d63 (diff)
Ector GL: Add skeletton for Evas.Ector.GL.Image.Buffer
This is an ector buffer backed by an existing Evas_GL_Image
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index 9c31dda89a..f72a3e8cf9 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -161,6 +161,21 @@ _evas_gl_texture_search_format(Eina_Bool alpha, Eina_Bool bgra, Evas_Colorspace
161 return -1; 161 return -1;
162} 162}
163 163
164Evas_Colorspace
165evas_gl_common_gl_format_to_colorspace(GLuint f)
166{
167 unsigned i;
168
169 for (i = 0; i < sizeof(matching_format) / sizeof(matching_format[0]); i++)
170 {
171 if (*matching_format[i].format == f)
172 return matching_format[i].cspace;
173 }
174
175 ERR("Unknown texture format!");
176 return EVAS_COLORSPACE_ARGB8888;
177}
178
164static void 179static void
165_print_tex_count(void) 180_print_tex_count(void)
166{ 181{