intel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).
authorEric Anholt <eric@anholt.net>
Tue, 20 Oct 2009 21:51:53 +0000 (14:51 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 27 Oct 2009 23:59:03 +0000 (16:59 -0700)
Bug #24435
(cherry picked from commit d56125a298106d81e10674f1c4b3b43b51a5139d)

src/mesa/drivers/dri/intel/intel_syncobj.c

index 1286fe929bc150f0d5fa501ebf52344eb38a4715..0d7889d3c258179bf74b6ee4ac28aeddbb79d805 100644 (file)
@@ -114,7 +114,7 @@ static void intel_check_sync(GLcontext *ctx, struct gl_sync_object *s)
 {
    struct intel_sync_object *sync = (struct intel_sync_object *)s;
 
-   if (sync->bo && drm_intel_bo_busy(sync->bo)) {
+   if (sync->bo && !drm_intel_bo_busy(sync->bo)) {
       drm_intel_bo_unreference(sync->bo);
       sync->bo = NULL;
       s->StatusFlag = 1;