summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-04-06 00:19:49 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-04-06 00:19:49 +0200
commit34c3e2c7868620d9c1c76fd810db3cb368fbd22b (patch)
tree21f885c1a14342cddf7a9d2004c7d7e9bb5ffabe /src
parentgl_rasterizer: Use ARB_multi_bind to update SSBOs (diff)
downloadyuzu-34c3e2c7868620d9c1c76fd810db3cb368fbd22b.tar
yuzu-34c3e2c7868620d9c1c76fd810db3cb368fbd22b.tar.gz
yuzu-34c3e2c7868620d9c1c76fd810db3cb368fbd22b.tar.bz2
yuzu-34c3e2c7868620d9c1c76fd810db3cb368fbd22b.tar.lz
yuzu-34c3e2c7868620d9c1c76fd810db3cb368fbd22b.tar.xz
yuzu-34c3e2c7868620d9c1c76fd810db3cb368fbd22b.tar.zst
yuzu-34c3e2c7868620d9c1c76fd810db3cb368fbd22b.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/utils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/utils.cpp b/src/video_core/renderer_opengl/utils.cpp
index 79bda54c1..84a987371 100644
--- a/src/video_core/renderer_opengl/utils.cpp
+++ b/src/video_core/renderer_opengl/utils.cpp
@@ -31,6 +31,9 @@ void BindBuffersRangePushBuffer::Push(GLuint buffer, GLintptr offset, GLsizeiptr
void BindBuffersRangePushBuffer::Bind() const {
const std::size_t count{buffers.size()};
DEBUG_ASSERT(count == offsets.size() && count == sizes.size());
+ if (count == 0) {
+ return;
+ }
glBindBuffersRange(target, first, static_cast<GLsizei>(count), buffers.data(), offsets.data(),
sizes.data());
}