summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-03-06 03:09:55 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2016-03-24 04:02:05 +0100
commit0c447e0a067c0445f45f333ba35597dbc6a5b656 (patch)
tree593f56b20b2e7495c97f05d924fa4547da3fe2a7 /src
parentMerge pull request #1517 from Lectem/fixSDLcmake (diff)
downloadyuzu-0c447e0a067c0445f45f333ba35597dbc6a5b656.tar
yuzu-0c447e0a067c0445f45f333ba35597dbc6a5b656.tar.gz
yuzu-0c447e0a067c0445f45f333ba35597dbc6a5b656.tar.bz2
yuzu-0c447e0a067c0445f45f333ba35597dbc6a5b656.tar.lz
yuzu-0c447e0a067c0445f45f333ba35597dbc6a5b656.tar.xz
yuzu-0c447e0a067c0445f45f333ba35597dbc6a5b656.tar.zst
yuzu-0c447e0a067c0445f45f333ba35597dbc6a5b656.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index b3dc6aa19..1fadcf5ae 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -190,6 +190,9 @@ void RasterizerOpenGL::AddTriangle(const Pica::Shader::OutputVertex& v0,
}
void RasterizerOpenGL::DrawTriangles() {
+ if (vertex_batch.empty())
+ return;
+
SyncFramebuffer();
SyncDrawState();