evas gl - fix egl/gles build after alpha4 change for fonts

This commit is contained in:
Carsten Haitzler 2014-01-13 07:02:24 +09:00
parent 86a97efeea
commit 93fd2263fc
2 changed files with 24 additions and 0 deletions

View File

@ -54,6 +54,27 @@
#ifndef GL_RGBA16
# define GL_RGBA16 0x805B
#endif
#ifndef GL_R3_G3_B2
# define GL_R3_G3_B2 0x2A10
#endif
#ifndef GL_RGB4
# define GL_RGB4 0x804F
#endif
#ifndef GL_RGB5
# define GL_RGB5 0x8050
#endif
#ifndef GL_RGB8
# define GL_RGB8 0x8051
#endif
#ifndef GL_RGB10
# define GL_RGB10 0x8052
#endif
#ifndef GL_RGB12
# define GL_RGB12 0x8053
#endif
#ifndef GL_RGB16
# define GL_RGB16 0x8054
#endif
#ifndef GL_ALPHA4
# define GL_ALPHA4 0x803B
#endif

View File

@ -168,8 +168,11 @@ _tex_format_index(GLuint format)
case GL_BGRA:
return 0;
case GL_RGB:
case GL_R3_G3_B2:
case GL_RGB4:
case GL_RGB5:
case GL_RGB8:
case GL_RGB10:
case GL_RGB12:
case GL_RGB16:
return 1;