st/wgl: return height, not width for WGL_PBUFFER_HEIGHT_ARB
authorBrian Paul <brianp@vmware.com>
Thu, 23 Jun 2011 12:54:51 +0000 (06:54 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Jun 2011 12:54:53 +0000 (06:54 -0600)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38599

src/gallium/state_trackers/wgl/stw_ext_pbuffer.c

index 424d8daccb3a2743ac1c84eee023cf6549e8878c..c7273f26545ee2d09adfbeece7aa54217170c9fd 100644 (file)
@@ -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 */