Correct instanced draw topology changed warning location

Before it would trigger even when the draw had the instanceNext flag set and thus wasn't part of the instanced draw at all.
This commit is contained in:
Billy Laws 2022-06-04 17:43:03 +01:00
parent deb7a0e22a
commit 616f7b7826

View File

@ -65,10 +65,10 @@ namespace skyline::soc::gm20b::engine::maxwell3d {
if (deferredDraw.pending) {
switch (method) {
ENGINE_CASE(vertexBeginGl, {
if (deferredDraw.drawTopology != vertexBeginGl.topology && !vertexBeginGl.instanceContinue)
Logger::Warn("Vertex topology changed partway through instanced draw!");
if (vertexBeginGl.instanceNext) {
if (deferredDraw.drawTopology != vertexBeginGl.topology && !vertexBeginGl.instanceContinue)
Logger::Warn("Vertex topology changed partway through instanced draw!");
deferredDraw.instanceCount++;
} else if (vertexBeginGl.instanceContinue) {
FlushDeferredDraw();