diff options
author | José Fonseca <[email protected]> | 2009-06-30 15:09:34 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-06-30 15:33:53 +0100 |
commit | 6e09c1fd085361212c5bfccf6b2810f3f8052231 (patch) | |
tree | cc843d7f91875aa0379929e8b0ecfed46541425e /src/mesa/state_tracker | |
parent | 18a6f0f1a7fd509cebdc364d67b9476df1d33917 (diff) |
mesa: Set FLUSH_EXPLICIT_BIT flags when calling FlushMappedBufferRange.
As prescribed by ARB_map_buffer_range.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bufferobjects.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 19a0e673623..a627c0374ad 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.c +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c @@ -237,6 +237,9 @@ st_bufferobj_map_range(GLcontext *ctx, GLenum target, if (access & GL_MAP_READ_BIT) flags |= PIPE_BUFFER_USAGE_CPU_READ; + if (access & GL_MAP_FLUSH_EXPLICIT_BIT) + flags |= PIPE_BUFFER_USAGE_FLUSH_EXPLICIT; + /* ... other flags ... */ |