summaryrefslogtreecommitdiff
path: root/src/glx/compsize.c
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2010-09-09 13:43:11 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-02-06 23:00:44 +0000
commit8937c166efaaae6e05d8c8cd30be220b577729b8 (patch)
tree8bf734dd1e3bd7bb6978fdfae5216169e86c371c /src/glx/compsize.c
parent814be043fae0ed3498bbc4c8e8f07c2655c2438b (diff)
Have __glImageSize handle format GL_DEPTH_STENCIL_NV the same way as the server does
There is a mismatch between the way the X server and GLX library calculates the image size for format GL_DEPTH_STENCIL(|_NV|_EXT) See https://bugs.freedesktop.org/show_bug.cgi?id=30102 Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'src/glx/compsize.c')
-rw-r--r--src/glx/compsize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/compsize.c b/src/glx/compsize.c
index f69ffaba316..99c7763c7f9 100644
--- a/src/glx/compsize.c
+++ b/src/glx/compsize.c
@@ -71,6 +71,7 @@ __glElementsPerGroup(GLenum format, GLenum type)
case GL_422_REV_EXT:
case GL_422_AVERAGE_EXT:
case GL_422_REV_AVERAGE_EXT:
+ case GL_DEPTH_STENCIL_NV:
case GL_YCBCR_422_APPLE:
case GL_LUMINANCE_ALPHA:
return 2;