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, 20 Oct 2009 21:52:58 +0000 (14:52 -0700)
Bug #24435

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;