diff options
-rw-r--r-- | glx/glxdri2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 177c73ca2..970a51ae3 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -435,7 +435,8 @@ __glXDRIinvalidateBuffers(DrawablePtr pDraw, void *priv) __GLXDRIdrawable *private = priv; __GLXDRIscreen *screen = private->screen; - (*screen->flush->invalidate)(private->driDrawable); + if (screen->flush) + (*screen->flush->invalidate)(private->driDrawable); #endif } |