OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
811ee32
)
mesa: allow internalFormat=GL_BGRA_EXT in TexImage2D
author
Benjamin Franzke
<benjaminfranzke@googlemail.com>
Fri, 21 Jan 2011 13:24:11 +0000
(14:24 +0100)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 24 Jan 2011 21:41:29 +0000
(16:41 -0500)
src/mesa/main/teximage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index
47d5093
..
c3cd6b6
100644
(file)
--- a/
src/mesa/main/teximage.c
+++ b/
src/mesa/main/teximage.c
@@
-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: