From 34c3e2c7868620d9c1c76fd810db3cb368fbd22b Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Fri, 5 Apr 2019 19:19:49 -0300 Subject: renderer_opengl/utils: Skip empty binds --- src/video_core/renderer_opengl/utils.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/video_core') 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(count), buffers.data(), offsets.data(), sizes.data()); } -- cgit v1.2.3