Mesa (master): Have __glImageSize handle format GL_DEPTH_STENCIL_NV the same way as the server does

Jon TURNEY jturney at kemper.freedesktop.org
Mon Feb 6 23:03:39 UTC 2012


Module: Mesa
Branch: master
Commit: 8937c166efaaae6e05d8c8cd30be220b577729b8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8937c166efaaae6e05d8c8cd30be220b577729b8

Author: Jon TURNEY <jon.turney at dronecode.org.uk>
Date:   Thu Sep  9 13:43:11 2010 +0100

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 at dronecode.org.uk>

---

 src/glx/compsize.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/glx/compsize.c b/src/glx/compsize.c
index f69ffab..99c7763 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;




More information about the mesa-commit mailing list