summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-11-29 07:26:37 -0700
committerBrian Paul <[email protected]>2011-11-30 06:57:37 -0700
commitc3a57841a3b51dc463b7fa5ca94b897917a86f20 (patch)
treecab7bc88a70511c852b779521dd627bad1550155 /src/mesa/main
parent76374e60cd7ec6519aae77cb98a747710114bae2 (diff)
mesa: fix MESA_FORMAT_RG88 format match test
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/formats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index 6709ef5a82e..873fedc6539 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -2599,7 +2599,7 @@ _mesa_format_matches_format_and_type(gl_format gl_format,
case MESA_FORMAT_R8:
return format == GL_RED && type == GL_UNSIGNED_BYTE;
case MESA_FORMAT_RG88:
- return format == GL_LUMINANCE_ALPHA && type == GL_UNSIGNED_BYTE && littleEndian;
+ return format == GL_RG && type == GL_UNSIGNED_BYTE && littleEndian;
case MESA_FORMAT_RG88_REV:
return GL_FALSE;