intel: Fix locking when doing intel_region_cow().

This was broken in the merge of 965 blit support.  It tried to lock only
when things were already locked.
This commit is contained in:
Eric Anholt
2008-06-26 15:34:27 -07:00
parent 93f701bc36
commit f059a33022
+2 -2
View File
@@ -377,7 +377,7 @@ intel_region_cow(struct intel_context *intel, struct intel_region *region)
*/
was_locked = intel->locked;
if (intel->locked)
if (!was_locked)
LOCK_HARDWARE(intel);
intelEmitCopyBlit(intel,
@@ -388,7 +388,7 @@ intel_region_cow(struct intel_context *intel, struct intel_region *region)
region->pitch, region->height,
GL_COPY);
if (was_locked)
if (!was_locked)
UNLOCK_HARDWARE(intel);
}