From 8ef024ad7d570129538f7f8f5f4d22463639643f Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Wed, 12 Oct 2022 23:24:20 +0200 Subject: [PATCH] early-access version 3015 --- README.md | 2 +- src/video_core/engines/maxwell_3d.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c72136faf..98d049195 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 3014. +This is the source code for early-access 3015. ## Legal Notice diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 289aa45c0..ad8e0ec50 100755 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -214,16 +214,22 @@ void Maxwell3D::ProcessMethodCall(u32 method, u32 argument, u32 nonshadow_argume regs.index_buffer.count = regs.index_buffer32_first.count; regs.index_buffer.first = regs.index_buffer32_first.first; dirty.flags[VideoCommon::Dirty::IndexBuffer] = true; + draw_state.current_mode = DrawMode::Indexed; + draw_state.gl_end_count = draw_state.instance_count = 1; return FlushInlineDraw(); case MAXWELL3D_REG_INDEX(index_buffer16_first): regs.index_buffer.count = regs.index_buffer16_first.count; regs.index_buffer.first = regs.index_buffer16_first.first; dirty.flags[VideoCommon::Dirty::IndexBuffer] = true; + draw_state.current_mode = DrawMode::Indexed; + draw_state.gl_end_count = draw_state.instance_count = 1; return FlushInlineDraw(); case MAXWELL3D_REG_INDEX(index_buffer8_first): regs.index_buffer.count = regs.index_buffer8_first.count; regs.index_buffer.first = regs.index_buffer8_first.first; dirty.flags[VideoCommon::Dirty::IndexBuffer] = true; + draw_state.current_mode = DrawMode::Indexed; + draw_state.gl_end_count = draw_state.instance_count = 1; return FlushInlineDraw(); case MAXWELL3D_REG_INDEX(topology_override): use_topology_override = true;