Skip to content

Commit 0ffc339

Browse files
committed
fix implicit autoref
1 parent b99898c commit 0ffc339

File tree

1 file changed

+3
-3
lines changed
  • third-party/imgui-dx11-renderer/src

1 file changed

+3
-3
lines changed

third-party/imgui-dx11-renderer/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -809,12 +809,12 @@ impl Drop for StateBackup<'_> {
809809

810810
ctx.PSSetShaderResources(0, 1, &opt_com_ptr_as_raw(&self.shader_resource));
811811
ctx.PSSetSamplers(0, 1, &opt_com_ptr_as_raw(&self.sampler));
812-
ctx.PSSetShader(opt_com_ptr_as_raw(&self.ps_shader), &(*self.ps_instances).as_mut_ptr(), (*self.ps_instances).len() as u32);
812+
ctx.PSSetShader(opt_com_ptr_as_raw(&self.ps_shader), &(*self.ps_instances).as_mut_ptr(), (&(*self.ps_instances)).len() as u32);
813813

814-
ctx.VSSetShader(opt_com_ptr_as_raw(&self.vs_shader), &(*self.vs_instances).as_mut_ptr(), (*self.vs_instances).len() as u32);
814+
ctx.VSSetShader(opt_com_ptr_as_raw(&self.vs_shader), &(*self.vs_instances).as_mut_ptr(), (&(*self.vs_instances)).len() as u32);
815815
ctx.VSSetConstantBuffers(0, 1, &opt_com_ptr_as_raw(&self.constant_buffer));
816816

817-
ctx.GSSetShader(opt_com_ptr_as_raw(&self.gs_shader), &(*self.gs_instances).as_mut_ptr(), (*self.gs_instances).len() as u32);
817+
ctx.GSSetShader(opt_com_ptr_as_raw(&self.gs_shader), &(*self.gs_instances).as_mut_ptr(), (&(*self.gs_instances)).len() as u32);
818818

819819
ctx.IASetPrimitiveTopology(self.topology);
820820
ctx.IASetIndexBuffer(opt_com_ptr_as_raw(&self.index_buffer), self.index_buffer_format, self.index_buffer_offset);

0 commit comments

Comments
 (0)