mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-26 16:14:15 +01:00
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:
parent
deb7a0e22a
commit
616f7b7826
@ -65,10 +65,10 @@ namespace skyline::soc::gm20b::engine::maxwell3d {
|
|||||||
if (deferredDraw.pending) {
|
if (deferredDraw.pending) {
|
||||||
switch (method) {
|
switch (method) {
|
||||||
ENGINE_CASE(vertexBeginGl, {
|
ENGINE_CASE(vertexBeginGl, {
|
||||||
if (deferredDraw.drawTopology != vertexBeginGl.topology && !vertexBeginGl.instanceContinue)
|
|
||||||
Logger::Warn("Vertex topology changed partway through instanced draw!");
|
|
||||||
|
|
||||||
if (vertexBeginGl.instanceNext) {
|
if (vertexBeginGl.instanceNext) {
|
||||||
|
if (deferredDraw.drawTopology != vertexBeginGl.topology && !vertexBeginGl.instanceContinue)
|
||||||
|
Logger::Warn("Vertex topology changed partway through instanced draw!");
|
||||||
|
|
||||||
deferredDraw.instanceCount++;
|
deferredDraw.instanceCount++;
|
||||||
} else if (vertexBeginGl.instanceContinue) {
|
} else if (vertexBeginGl.instanceContinue) {
|
||||||
FlushDeferredDraw();
|
FlushDeferredDraw();
|
||||||
|
Loading…
Reference in New Issue
Block a user