From 0ecd181cca9947da8acd9a3c92cb38e9bd141064 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Sat, 6 Oct 2018 23:22:48 -0300 Subject: gl_rasterizer: Fixup undefined behaviour in SetupDraw --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 60dcdc184..a91bc6dee 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -252,6 +252,7 @@ DrawParameters RasterizerOpenGL::SetupDraw() { params.count = regs.vertex_buffer.count; params.vertex_first = regs.vertex_buffer.first; } + return params; } void RasterizerOpenGL::SetupShaders() { -- cgit v1.2.3