st/glx: Set the drawable attribute on xmesa_buffer creation.
authorStephen White <senorblanco@chromium.org>
Mon, 3 Oct 2011 22:18:22 +0000 (15:18 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Tue, 4 Oct 2011 18:19:45 +0000 (11:19 -0700)
Otherwise we'll be unable to use our pbuffers.

src/gallium/state_trackers/glx/xlib/xm_api.c

index 8f6406ddaee20c469523c84b9ca9936260904d7c..faaa5a7501057a031ae391b5710a4325ecce4a65 100644 (file)
@@ -448,7 +448,7 @@ create_xmesa_buffer(Drawable d, BufferType type,
    if (!b)
       return NULL;
 
-   b->ws.drawable = d;
+   b->ws.drawable = b->drawable = d;
    b->ws.visual = vis->visinfo->visual;
    b->ws.depth = vis->visinfo->depth;