mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-14 00:01:20 +00:00
dri2: avoid crash with old dri drivers.
I built latest server and copied over a mesa 7.8 dri2 driver to use with it, and it crashed in here starting compiz. Looks like we need to validate the flush extension is registered before calling invalidate. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Michel Dänzer <michel@daenzer.net> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
80d1a548d6
commit
c6bc52cb66
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue