File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
third-party/imgui-dx11-renderer/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments