summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-06-11 19:08:55 +0000
committerBrian Paul <[email protected]>2004-06-11 19:08:55 +0000
commitbeef59e73aad91ca52d72fd0224e696826038318 (patch)
tree7f08bbee04ec2e805f68703cf43ffc0985e7f7af /src
parent3f3d11d067034be167861fcce8230911956e8c51 (diff)
added GL_BGR and GL_BGRA to is_color_format() (Ronny Vindenes
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/teximage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 54cc73dce80..0da73231f11 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -356,6 +356,7 @@ is_color_format(GLenum internalFormat)
case GL_INTENSITY16:
case 3:
case GL_RGB:
+ case GL_BGR:
case GL_R3_G3_B2:
case GL_RGB4:
case GL_RGB5:
@@ -365,6 +366,7 @@ is_color_format(GLenum internalFormat)
case GL_RGB16:
case 4:
case GL_RGBA:
+ case GL_BGRA:
case GL_RGBA2:
case GL_RGBA4:
case GL_RGB5_A1: