diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index 607584f..36bfc5f 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -438,7 +438,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); @@ -457,8 +456,6 @@ create_xmesa_buffer(Drawable d, BufferType type, b->type = type; b->cmap = cmap; - get_drawable_size(vis->display, d, &width, &height); - /* * Create framebuffer, but we'll plug in our own renderbuffers below. */ @@ -1107,6 +1104,9 @@ XMesaCreatePBuffer(XMesaVisual v, Colormap cmap, return NULL; } + b->width = width; + b->height = height; + return b; }