diff options
author | Patrick Elsässer <paddy334@web.de> | 2018-09-09 17:51:43 +0200 |
---|---|---|
committer | Patrick Elsässer <paddy334@web.de> | 2018-09-09 17:51:43 +0200 |
commit | 64e45b04e0eba71ffef6b8776b50026a26325ae7 (patch) | |
tree | ac5f630e88eceff68561678723e8717117a29bc0 /src/video_core/renderer_opengl/gl_stream_buffer.cpp | |
parent | Merge pull request #1277 from jroweboy/update-xbyak (diff) | |
download | yuzu-64e45b04e0eba71ffef6b8776b50026a26325ae7.tar yuzu-64e45b04e0eba71ffef6b8776b50026a26325ae7.tar.gz yuzu-64e45b04e0eba71ffef6b8776b50026a26325ae7.tar.bz2 yuzu-64e45b04e0eba71ffef6b8776b50026a26325ae7.tar.lz yuzu-64e45b04e0eba71ffef6b8776b50026a26325ae7.tar.xz yuzu-64e45b04e0eba71ffef6b8776b50026a26325ae7.tar.zst yuzu-64e45b04e0eba71ffef6b8776b50026a26325ae7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_stream_buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_stream_buffer.cpp b/src/video_core/renderer_opengl/gl_stream_buffer.cpp index e565afcee..aadf68f16 100644 --- a/src/video_core/renderer_opengl/gl_stream_buffer.cpp +++ b/src/video_core/renderer_opengl/gl_stream_buffer.cpp @@ -29,7 +29,7 @@ OGLStreamBuffer::OGLStreamBuffer(GLenum target, GLsizeiptr size, bool prefer_coh if (GLAD_GL_ARB_buffer_storage) { persistent = true; coherent = prefer_coherent; - GLbitfield flags = + const GLbitfield flags = GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | (coherent ? GL_MAP_COHERENT_BIT : 0); glBufferStorage(gl_target, allocate_size, nullptr, flags); mapped_ptr = static_cast<u8*>(glMapBufferRange( |