From: Brian Paul Date: Thu, 23 Jun 2011 12:54:51 +0000 (-0600) Subject: st/wgl: return height, not width for WGL_PBUFFER_HEIGHT_ARB X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a5a28b731efc7e1cddd552c46f015ca328662bd;p=mesa.git st/wgl: return height, not width for WGL_PBUFFER_HEIGHT_ARB Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38599 --- diff --git a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c index 424d8daccb3..c7273f26545 100644 --- a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c +++ b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c @@ -268,7 +268,7 @@ wglQueryPbufferARB(HPBUFFERARB hPbuffer, *piValue = fb->width; return TRUE; case WGL_PBUFFER_HEIGHT_ARB: - *piValue = fb->width; + *piValue = fb->height; return TRUE; case WGL_PBUFFER_LOST_ARB: /* We assume that no content is ever lost due to display mode change */