intel: Sync a synchronized READ_BIT map buffer range with GL drawing to it.

It's probably uncommon, but would obviously have gone wrong.
This commit is contained in:
Eric Anholt 2009-09-02 11:33:08 -07:00
parent aecba6b1c8
commit 82313eed01
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ intel_bufferobj_map_range(GLcontext * ctx,
* the batchbuffer so that GEM knows about the buffer access for later
* syncing.
*/
if ((access & GL_MAP_WRITE_BIT) && !(access & GL_MAP_UNSYNCHRONIZED_BIT))
if (!(access & GL_MAP_UNSYNCHRONIZED_BIT))
intelFlush(ctx);
if (intel_obj->buffer == NULL) {