st/mesa: Enable EXT_texture_format_BGRA8888 for gles1/2
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Fri, 21 Jan 2011 13:29:32 +0000 (14:29 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 24 Jan 2011 21:41:29 +0000 (16:41 -0500)
src/mesa/state_tracker/st_extensions.c

index 974fd78d7c8cfd185f9ef0b56e4351af707eb549..d7ed7ea3a5c6e3560e8d534e1a064c3f7ad34d82 100644 (file)
@@ -260,6 +260,8 @@ void st_init_extensions(struct st_context *st)
    ctx->Extensions.EXT_texture_env_dot3 = GL_TRUE;
    ctx->Extensions.EXT_texture_lod_bias = GL_TRUE;
    ctx->Extensions.EXT_vertex_array_bgra = GL_TRUE;
+   if (ctx->API == API_OPENGLES || ctx->API == API_OPENGLES2)
+          ctx->Extensions.EXT_texture_format_BGRA8888 = GL_TRUE;
 
    ctx->Extensions.APPLE_vertex_array_object = GL_TRUE;