mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 09:45:28 +03: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) {
|
||||
switch (method) {
|
||||
ENGINE_CASE(vertexBeginGl, {
|
||||
if (vertexBeginGl.instanceNext) {
|
||||
if (deferredDraw.drawTopology != vertexBeginGl.topology && !vertexBeginGl.instanceContinue)
|
||||
Logger::Warn("Vertex topology changed partway through instanced draw!");
|
||||
|
||||
if (vertexBeginGl.instanceNext) {
|
||||
deferredDraw.instanceCount++;
|
||||
} else if (vertexBeginGl.instanceContinue) {
|
||||
FlushDeferredDraw();
|
||||
|
Loading…
Reference in New Issue
Block a user