File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ namespace Renderer
418
418
419
419
DWORD deviceCreationFlags = 0 ;
420
420
#ifdef _DEBUG
421
- // deviceCreationFlags |= D3D11_CREATE_DEVICE_DEBUG;
421
+ deviceCreationFlags |= D3D11_CREATE_DEVICE_DEBUG;
422
422
#endif
423
423
424
424
if (D3D11CreateDeviceAndSwapChain (
@@ -540,7 +540,7 @@ namespace Renderer
540
540
sampDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP;
541
541
sampDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP;
542
542
sampDesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP;
543
- sampDesc.Filter = D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT ;
543
+ sampDesc.Filter = D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT ;
544
544
if (pDevice->CreateSamplerState ( &sampDesc, &pFullscreenQuadSamplerState ) != S_OK)
545
545
return false ;
546
546
@@ -1054,6 +1054,10 @@ namespace Renderer
1054
1054
pContext->OMSetBlendState ( pGUIBlendState, factor, 0xFFFFFFFF );
1055
1055
pContext->RSSetState ( pGUIRasterizerState );
1056
1056
1057
+ // Disable previous texture
1058
+ ID3D11ShaderResourceView * dummy[1 ] = { NULL };
1059
+ pContext->PSSetShaderResources ( 0 , 1 , dummy );
1060
+
1057
1061
ID3D11Buffer * buffers[] = { pGUIQuadVB };
1058
1062
UINT stride[] = { sizeof (float ) * 7 };
1059
1063
UINT offset[] = { 0 };
You can’t perform that action at this time.
0 commit comments