Преглед изворни кода

dri2: Don't call the dri2 flush hook for swapbuffers unless we have a context.

The driver only has one reasonable place to look for its context to
flush anything, which is the current context.  Don't bother it with
having to check.
tags/android-x86-2.2-r2
Eric Anholt пре 14 година
родитељ
комит
74cde6505c
1 измењених фајлова са 7 додато и 2 уклоњено
  1. 7
    2
      src/glx/dri2_glx.c

+ 7
- 2
src/glx/dri2_glx.c Прегледај датотеку

@@ -535,8 +535,13 @@ dri2SwapBuffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor,
CARD64 ret = 0;

#ifdef __DRI2_FLUSH
if (psc->f)
(*psc->f->flush)(priv->driDrawable);
if (psc->f) {
struct glx_context *gc = __glXGetCurrentContext();

if (gc) {
(*psc->f->flush)(priv->driDrawable);
}
}
#endif

/* Old servers don't send invalidate events */

Loading…
Откажи
Сачувај