Mesa (master): st/wgl: return height, not width for WGL_PBUFFER_HEIGHT_ARB
Brian Paul
brianp at kemper.freedesktop.org
Thu Jun 23 12:56:01 UTC 2011
Module: Mesa
Branch: master
Commit: 8a5a28b731efc7e1cddd552c46f015ca328662bd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a5a28b731efc7e1cddd552c46f015ca328662bd
Author: Brian Paul <brianp at vmware.com>
Date: Thu Jun 23 06:54:51 2011 -0600
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c
index 424d8da..c7273f2 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 */
More information about the mesa-commit
mailing list