Have __glImageSize handle format GL_DEPTH_STENCIL_NV the same way as the server does
authorJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 9 Sep 2010 12:43:11 +0000 (13:43 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Mon, 6 Feb 2012 23:00:44 +0000 (23:00 +0000)
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>
src/glx/compsize.c

index f69ffaba31619336b3946bfad77561a812b86099..99c7763c7f99793d932e29a773c98c07b3cc9f1a 100644 (file)
@@ -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;