diff options
author | Brian Paul <brianp@vmware.com> | 2013-02-18 11:17:07 -0700 |
---|---|---|
committer | Andreas Boll <andreas.boll.dev@gmail.com> | 2013-04-17 12:32:28 +0200 |
commit | a46c6765ba5e8d2833cbe4cafba12e443e0c1b0f (patch) | |
tree | 9bfa1a386a5afc17838f0e159bf0967921021b8e | |
parent | 9c82987c2160f55d8153579e149b2ec0cd9b1cc3 (diff) |
st/xlib: initialize the drawable size in create_xmesa_buffer()
Otherwise, the PBuffer's size was never set. This also initializes
the buffer size for windows, pixmaps, etc.
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=61012
Note: This is a candidate for the stable branches.
(cherry picked from commit e2091f64cb9ea79f3b51c353ed9facc03ec5690a)
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index 8f907049d3..82acc8a5b8 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -440,7 +440,6 @@ create_xmesa_buffer(Drawable d, BufferType type, { XMesaDisplay xmdpy = xmesa_init_display(vis->display); XMesaBuffer b; - uint width, height; ASSERT(type == WINDOW || type == PIXMAP || type == PBUFFER); @@ -459,7 +458,7 @@ create_xmesa_buffer(Drawable d, BufferType type, b->type = type; b->cmap = cmap; - get_drawable_size(vis->display, d, &width, &height); + get_drawable_size(vis->display, d, &b->width, &b->height); /* * Create framebuffer, but we'll plug in our own renderbuffers below. |