glx/dri3: a drawable might not be bound at wait time
A trace of Alien Isolation hit this on nouveau. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com> Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
@@ -437,6 +437,7 @@ dri3_wait_x(struct glx_context *gc)
|
||||
struct dri3_drawable *priv = (struct dri3_drawable *)
|
||||
GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
|
||||
|
||||
if (priv)
|
||||
loader_dri3_wait_x(&priv->loader_drawable);
|
||||
}
|
||||
|
||||
@@ -446,6 +447,7 @@ dri3_wait_gl(struct glx_context *gc)
|
||||
struct dri3_drawable *priv = (struct dri3_drawable *)
|
||||
GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
|
||||
|
||||
if (priv)
|
||||
loader_dri3_wait_gl(&priv->loader_drawable);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user