summaryrefslogtreecommitdiff
path: root/src/mesa/main/formats.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-02-16 10:07:05 +0100
committerMarek Olšák <maraeo@gmail.com>2011-02-16 20:21:40 +0100
commit4d6994e40ebccf9428fc757d845e25c0e0c12cef (patch)
tree52b8bdc9f54c30dca682948a6c8210cd2e9b2d25 /src/mesa/main/formats.h
parent33d8ff9c317eeb1300bc8e189d7b9c00b352323a (diff)
mesa: fix mipmap generation for MESA_FORMAT_AL44
This was missed when implementing AL44.
Diffstat (limited to 'src/mesa/main/formats.h')
-rw-r--r--src/mesa/main/formats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h
index d4dc5eac03..9a5cef3778 100644
--- a/src/mesa/main/formats.h
+++ b/src/mesa/main/formats.h
@@ -35,6 +35,9 @@
#include <GL/gl.h>
+/* OpenGL doesn't have GL_UNSIGNED_BYTE_4_4, so we must define our own type
+ * for GL_LUMINANCE4_ALPHA4. */
+#define MESA_UNSIGNED_BYTE_4_4 (GL_UNSIGNED_BYTE<<1)
/**