mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 02:30:12 +01:00
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.
This commit is contained in:
parent
5876a5dbc0
commit
e2091f64cb
1 changed files with 1 additions and 2 deletions
|
|
@ -438,7 +438,6 @@ create_xmesa_buffer(Drawable d, BufferType type,
|
||||||
{
|
{
|
||||||
XMesaDisplay xmdpy = xmesa_init_display(vis->display);
|
XMesaDisplay xmdpy = xmesa_init_display(vis->display);
|
||||||
XMesaBuffer b;
|
XMesaBuffer b;
|
||||||
uint width, height;
|
|
||||||
|
|
||||||
ASSERT(type == WINDOW || type == PIXMAP || type == PBUFFER);
|
ASSERT(type == WINDOW || type == PIXMAP || type == PBUFFER);
|
||||||
|
|
||||||
|
|
@ -457,7 +456,7 @@ create_xmesa_buffer(Drawable d, BufferType type,
|
||||||
b->type = type;
|
b->type = type;
|
||||||
b->cmap = cmap;
|
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.
|
* Create framebuffer, but we'll plug in our own renderbuffers below.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue