From 8a5a28b731efc7e1cddd552c46f015ca328662bd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 23 Jun 2011 06:54:51 -0600 Subject: [PATCH] st/wgl: return height, not width for WGL_PBUFFER_HEIGHT_ARB Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38599 --- src/gallium/state_trackers/wgl/stw_ext_pbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.30.2