diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-06-25 22:12:33 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-07-18 06:59:57 +0200 |
commit | a8a2526128970dbe47bc25c28b8d2bfb52ac4a26 (patch) | |
tree | e092baf3d1e1ea99baf805e2d9e1285810ded2d7 /src/video_core/renderer_opengl/gl_stream_buffer.cpp | |
parent | Merge pull request #4273 from ogniK5377/async-shaders-prod (diff) | |
download | yuzu-a8a2526128970dbe47bc25c28b8d2bfb52ac4a26.tar yuzu-a8a2526128970dbe47bc25c28b8d2bfb52ac4a26.tar.gz yuzu-a8a2526128970dbe47bc25c28b8d2bfb52ac4a26.tar.bz2 yuzu-a8a2526128970dbe47bc25c28b8d2bfb52ac4a26.tar.lz yuzu-a8a2526128970dbe47bc25c28b8d2bfb52ac4a26.tar.xz yuzu-a8a2526128970dbe47bc25c28b8d2bfb52ac4a26.tar.zst yuzu-a8a2526128970dbe47bc25c28b8d2bfb52ac4a26.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 3655ff629..887995cf4 100644 --- a/src/video_core/renderer_opengl/gl_stream_buffer.cpp +++ b/src/video_core/renderer_opengl/gl_stream_buffer.cpp @@ -35,7 +35,7 @@ OGLStreamBuffer::OGLStreamBuffer(const Device& device, GLsizeiptr size, bool ver mapped_ptr = static_cast<u8*>( glMapNamedBufferRange(gl_buffer.handle, 0, buffer_size, flags | GL_MAP_FLUSH_EXPLICIT_BIT)); - if (device.HasVertexBufferUnifiedMemory()) { + if (device.UseAssemblyShaders() || device.HasVertexBufferUnifiedMemory()) { glMakeNamedBufferResidentNV(gl_buffer.handle, GL_READ_ONLY); glGetNamedBufferParameterui64vNV(gl_buffer.handle, GL_BUFFER_GPU_ADDRESS_NV, &gpu_address); } |