Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
fix render for d3d11
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakers committed Jan 28, 2021
1 parent 31464bf commit d1334c9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions league_skin_changer/d3d_hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,7 @@ namespace d3d_vtable {
void create_render_target( ) {
ID3D11Texture2D* back_buffer;
p_swap_chain->GetBuffer( 0, IID_PPV_ARGS( &back_buffer ) );

D3D11_RENDER_TARGET_VIEW_DESC desc = {};
memset(&desc, 0, sizeof(desc));
desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
desc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D;

d3d11_device->CreateRenderTargetView( back_buffer, &desc, &main_render_target_view );
d3d11_device->CreateRenderTargetView( back_buffer, NULL, &main_render_target_view );
back_buffer->Release( );
}

Expand Down

0 comments on commit d1334c9

Please # to comment.