summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-02 18:23:36 +0200
committerSubv <subv2112@gmail.com>2018-07-02 18:23:36 +0200
commit4c59105adf8dc5171f3c7388b6b0db3cd0ee57ba (patch)
tree74eb19beb4ca8281ce5cca0fe3582a1a3d12c19f /src
parentGPU: Fixed the index offset rendering, and implemented the base vertex functionality. (diff)
downloadyuzu-4c59105adf8dc5171f3c7388b6b0db3cd0ee57ba.tar
yuzu-4c59105adf8dc5171f3c7388b6b0db3cd0ee57ba.tar.gz
yuzu-4c59105adf8dc5171f3c7388b6b0db3cd0ee57ba.tar.bz2
yuzu-4c59105adf8dc5171f3c7388b6b0db3cd0ee57ba.tar.lz
yuzu-4c59105adf8dc5171f3c7388b6b0db3cd0ee57ba.tar.xz
yuzu-4c59105adf8dc5171f3c7388b6b0db3cd0ee57ba.tar.zst
yuzu-4c59105adf8dc5171f3c7388b6b0db3cd0ee57ba.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index fe78f4226..b10a860a6 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -421,7 +421,7 @@ void RasterizerOpenGL::DrawArrays() {
MaxwellToGL::IndexFormat(regs.index_array.format),
reinterpret_cast<const void*>(index_buffer_offset), base_vertex);
} else {
- glDrawArrays(primitive_mode, 0, regs.vertex_buffer.count);
+ glDrawArrays(primitive_mode, regs.vertex_buffer.first, regs.vertex_buffer.count);
}
// Disable scissor test