mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-25 06:50:06 +00:00
OpenGL: Don't attempt to draw empty triangle batches
Our code did not handle this well, causing random crashes in some situations.
This commit is contained in:
parent
0a1c73e396
commit
0c447e0a06
@ -190,6 +190,9 @@ void RasterizerOpenGL::AddTriangle(const Pica::Shader::OutputVertex& v0,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RasterizerOpenGL::DrawTriangles() {
|
void RasterizerOpenGL::DrawTriangles() {
|
||||||
|
if (vertex_batch.empty())
|
||||||
|
return;
|
||||||
|
|
||||||
SyncFramebuffer();
|
SyncFramebuffer();
|
||||||
SyncDrawState();
|
SyncDrawState();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user