From 301073334a2cad120211ba5b91261a9b666dc81b Mon Sep 17 00:00:00 2001 From: Markus Wick Date: Sun, 6 May 2018 23:41:09 +0200 Subject: [PATCH] gl_rasterizer: Remove redundant scissor state change. There is no need to disable this state after the draw call, gl_state will handle this for us if needed. This kind of redundant state changes are bad for the driver overhead, as flipping bits will invalidate the driver state. --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index ee685c2ed..6f5c5fb12 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -783,9 +783,6 @@ bool RasterizerOpenGL::Draw(bool accelerate, bool is_indexed) { } } - // Disable scissor test - state.scissor.enabled = false; - vertex_batch.clear(); // Unbind textures for potential future use as framebuffer attachments