summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/Src/StreamBuffer.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2013-12-27 22:58:36 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2013-12-27 22:58:36 -0600
commit77ba05136130cbb0c4bf9ea913779ada88426607 (patch)
treea0fda3447078ef8f2a3913cc525cceacd0c87ee9 /Source/Core/VideoBackends/OGL/Src/StreamBuffer.cpp
parentd8ceb97a609389df7a2449b21626469b19a73e1a (diff)
[buffer_storage] Add the CLIENT_STORAGE_BIT since we access the buffer more frequently on the client side than the server side. That is exactly what the hint is for.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Src/StreamBuffer.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/Src/StreamBuffer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/Src/StreamBuffer.cpp b/Source/Core/VideoBackends/OGL/Src/StreamBuffer.cpp
index 5e3d4dfd38..5aae51c686 100644
--- a/Source/Core/VideoBackends/OGL/Src/StreamBuffer.cpp
+++ b/Source/Core/VideoBackends/OGL/Src/StreamBuffer.cpp
@@ -220,8 +220,9 @@ void StreamBuffer::Init()
// PERSISTANT_BIT to make sure that the buffer can be used while mapped
// COHERENT_BIT is set so we don't have to use a MemoryBarrier on write
+ // CLIENT_STORAGE_BIT is set since we access the buffer more frequently on the client side then server side
glBufferStorage(m_buffertype, m_size, NULL,
- GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT);
+ GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT | GL_CLIENT_STORAGE_BIT);
pointer = (u8*)glMapBufferRange(m_buffertype, 0, m_size,
GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT);
if(!pointer)