diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-03-06 03:09:55 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-03-24 04:02:05 +0100 |
commit | 0c447e0a067c0445f45f333ba35597dbc6a5b656 (patch) | |
tree | 593f56b20b2e7495c97f05d924fa4547da3fe2a7 | |
parent | Merge pull request #1517 from Lectem/fixSDLcmake (diff) | |
download | yuzu-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 |
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 3 |
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(); |