From abfa5929f17900ecff0a5e3fba25998db3fca7d4 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Wed, 14 Sep 2022 21:54:01 +0100 Subject: [PATCH] Treat vertex buffers with base addr 0 as disabled --- .../cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp index 69026eb4..167b7701 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp @@ -32,7 +32,7 @@ namespace skyline::gpu::interconnect::maxwell3d { void VertexBufferState::Flush(InterconnectContext &ctx, StateUpdateBuilder &builder) { size_t size{engine->vertexStreamLimit - engine->vertexStream.location + 1}; - if (engine->vertexStream.format.enable && size) { + if (engine->vertexStream.format.enable && engine->vertexStream.location != 0) { view.Update(ctx, engine->vertexStream.location, size); ctx.executor.AttachBuffer(*view);