mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
glx: Don't try to swap a front buffer if we don't have one.
Fixes glean glsl1 since 7b7845a076
This commit is contained in:
parent
a2eb8bdcc7
commit
9a12a3925a
1 changed files with 2 additions and 1 deletions
|
|
@ -423,12 +423,13 @@ dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate)
|
|||
struct dri2_drawable *pdraw = loaderPrivate;
|
||||
__GLXdisplayPrivate *priv = __glXInitialize(pdraw->base.psc->dpy);
|
||||
struct dri2_display *pdp = (struct dri2_display *)priv->dri2Display;
|
||||
GLXContext gc = __glXGetCurrentContext();
|
||||
|
||||
/* Old servers don't send invalidate events */
|
||||
if (!pdp->invalidateAvailable)
|
||||
dri2InvalidateBuffers(priv->dpy, pdraw->base.drawable);
|
||||
|
||||
dri2_copy_drawable(pdraw, DRI2BufferFrontLeft, DRI2BufferFakeFrontLeft);
|
||||
dri2_wait_gl(gc);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue