mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-16 05:19:19 +01:00
Treat vertex buffers with base addr 0 as disabled
This commit is contained in:
parent
e71ca05f19
commit
abfa5929f1
@ -32,7 +32,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
|||||||
void VertexBufferState::Flush(InterconnectContext &ctx, StateUpdateBuilder &builder) {
|
void VertexBufferState::Flush(InterconnectContext &ctx, StateUpdateBuilder &builder) {
|
||||||
size_t size{engine->vertexStreamLimit - engine->vertexStream.location + 1};
|
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);
|
view.Update(ctx, engine->vertexStream.location, size);
|
||||||
ctx.executor.AttachBuffer(*view);
|
ctx.executor.AttachBuffer(*view);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user