driFenceType: Really return fence type, not flags.

This typo could lead to the i915tex driver waiting for an EXE only fence as RW,
causing it to abort with an error.
This commit is contained in:
Michel Dänzer 2007-10-29 13:27:02 +00:00
parent 177f6398e5
commit 50cecddc4a

View file

@ -115,7 +115,7 @@ driFenceType(DriFenceObject * fence)
unsigned ret;
_glthread_LOCK_MUTEX(bmMutex);
ret = fence->fence.flags;
ret = fence->fence.type;
_glthread_UNLOCK_MUTEX(bmMutex);
return ret;