Browse Source

gpu/d3d12: Acknowledge that we've bound vertex buffers (#13088)

Anthony Fisher 2 months ago
parent
commit
a66816a72f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/gpu/d3d12/SDL_gpu_d3d12.c

+ 2 - 0
src/gpu/d3d12/SDL_gpu_d3d12.c

@@ -4961,6 +4961,8 @@ static void D3D12_INTERNAL_BindGraphicsResources(
             0,
             commandBuffer->vertexBufferCount,
             vertexBufferViews);
+
+        commandBuffer->needVertexBufferBind = false;
     }
 
     if (commandBuffer->needVertexSamplerBind) {