summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-21 20:02:00 +0200
committerGitHub <noreply@github.com>2018-09-21 20:02:00 +0200
commit4f186de0690536ab3a58c8a5746da9928e78223c (patch)
treebc9b139f6b9f3dd4bfbc23db1f95206e7dc57d44 /src
parentAdded support for uncompressed NSOs (#1374) (diff)
parentgl_stream_buffer: Fix use of bitwise OR instead of logical OR in Map() (diff)
downloadyuzu-4f186de0690536ab3a58c8a5746da9928e78223c.tar
yuzu-4f186de0690536ab3a58c8a5746da9928e78223c.tar.gz
yuzu-4f186de0690536ab3a58c8a5746da9928e78223c.tar.bz2
yuzu-4f186de0690536ab3a58c8a5746da9928e78223c.tar.lz
yuzu-4f186de0690536ab3a58c8a5746da9928e78223c.tar.xz
yuzu-4f186de0690536ab3a58c8a5746da9928e78223c.tar.zst
yuzu-4f186de0690536ab3a58c8a5746da9928e78223c.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_stream_buffer.cpp2
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 664f3ca20..e409228cc 100644
--- a/src/video_core/renderer_opengl/gl_stream_buffer.cpp
+++ b/src/video_core/renderer_opengl/gl_stream_buffer.cpp
@@ -74,7 +74,7 @@ std::tuple<u8*, GLintptr, bool> OGLStreamBuffer::Map(GLsizeiptr size, GLintptr a
}
}
- if (invalidate | !persistent) {
+ if (invalidate || !persistent) {
GLbitfield flags = GL_MAP_WRITE_BIT | (persistent ? GL_MAP_PERSISTENT_BIT : 0) |
(coherent ? GL_MAP_COHERENT_BIT : GL_MAP_FLUSH_EXPLICIT_BIT) |
(invalidate ? GL_MAP_INVALIDATE_BUFFER_BIT : GL_MAP_UNSYNCHRONIZED_BIT);