i915tex: Actually wait for previous commands to complete for glFinish().

This commit is contained in:
Michel Dänzer 2007-11-09 18:44:11 +01:00
parent bdfd9afead
commit a08c02f1a8

View file

@ -315,7 +315,7 @@ intelFinish(GLcontext * ctx)
intelFlush(ctx);
if (intel->batch->last_fence) {
driFenceFinish(intel->batch->last_fence,
0, GL_FALSE);
DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW, GL_FALSE);
driFenceUnReference(intel->batch->last_fence);
intel->batch->last_fence = NULL;
}