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:
parent
aecba6b1c8
commit
82313eed01
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue