diff options
author | FengChen <vonchenplus@gmail.com> | 2022-09-10 14:01:33 +0200 |
---|---|---|
committer | FengChen <vonchenplus@gmail.com> | 2022-09-10 14:01:33 +0200 |
commit | 92b1f8d5da2bcc857106d11a2af568bdabc93ed5 (patch) | |
tree | d8df240d5a8a8e4ccf3238a015677e62290ce93e /src | |
parent | Merge pull request #8863 from german77/triggers (diff) | |
download | yuzu-92b1f8d5da2bcc857106d11a2af568bdabc93ed5.tar yuzu-92b1f8d5da2bcc857106d11a2af568bdabc93ed5.tar.gz yuzu-92b1f8d5da2bcc857106d11a2af568bdabc93ed5.tar.bz2 yuzu-92b1f8d5da2bcc857106d11a2af568bdabc93ed5.tar.lz yuzu-92b1f8d5da2bcc857106d11a2af568bdabc93ed5.tar.xz yuzu-92b1f8d5da2bcc857106d11a2af568bdabc93ed5.tar.zst yuzu-92b1f8d5da2bcc857106d11a2af568bdabc93ed5.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_buffer_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.cpp b/src/video_core/renderer_opengl/gl_buffer_cache.cpp index 32450ee1d..08f4d69ab 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_buffer_cache.cpp @@ -168,7 +168,7 @@ void BufferCacheRuntime::BindIndexBuffer(Buffer& buffer, u32 offset, u32 size) { if (has_unified_vertex_buffers) { buffer.MakeResident(GL_READ_ONLY); glBufferAddressRangeNV(GL_ELEMENT_ARRAY_ADDRESS_NV, 0, buffer.HostGpuAddr() + offset, - static_cast<GLsizeiptr>(size)); + static_cast<GLsizeiptr>(Common::AlignUp(size, 4))); } else { glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, buffer.Handle()); index_buffer_offset = offset; |