mesa: allow internalFormat=GL_BGRA_EXT in TexImage2D

This commit is contained in:
Benjamin Franzke
2011-01-21 14:24:11 +01:00
committed by Kristian Høgsberg
parent 811ee32a9e
commit f1452844fe
+9
View File
@@ -183,6 +183,15 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat )
; /* fallthrough */
}
if (ctx->Extensions.EXT_texture_format_BGRA8888) {
switch (internalFormat) {
case GL_BGRA_EXT:
return GL_RGBA;
default:
; /* fallthrough */
}
}
if (ctx->Extensions.EXT_paletted_texture) {
switch (internalFormat) {
case GL_COLOR_INDEX: