From 4e42ba54e53c0a2ddd118e2e737feec12614c7f3 Mon Sep 17 00:00:00 2001 From: FengChen Date: Sun, 12 Mar 2023 13:21:26 +0800 Subject: [PATCH] video_core: Invalid index_buffer flag when inline_index draw --- src/video_core/engines/draw_manager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_core/engines/draw_manager.cpp b/src/video_core/engines/draw_manager.cpp index 1d22d25f12..0e94c521ac 100644 --- a/src/video_core/engines/draw_manager.cpp +++ b/src/video_core/engines/draw_manager.cpp @@ -164,6 +164,7 @@ void DrawManager::DrawEnd(u32 instance_count, bool force_draw) { draw_state.index_buffer.count = static_cast(draw_state.inline_index_draw_indexes.size() / 4); draw_state.index_buffer.format = Maxwell3D::Regs::IndexFormat::UnsignedInt; + maxwell3d->dirty.flags[VideoCommon::Dirty::IndexBuffer] = true; ProcessDraw(true, instance_count); draw_state.inline_index_draw_indexes.clear(); break;