Commit 525e78a8 authored by Gargaj's avatar Gargaj
Browse files

fix 1d texture in dx11 renderer

reenable debug device
fix d3d11 warnings
parent d4956f0a
......@@ -418,7 +418,7 @@ namespace Renderer
DWORD deviceCreationFlags = 0;
#ifdef _DEBUG
//deviceCreationFlags |= D3D11_CREATE_DEVICE_DEBUG;
deviceCreationFlags |= D3D11_CREATE_DEVICE_DEBUG;
#endif
if (D3D11CreateDeviceAndSwapChain(
......@@ -540,7 +540,7 @@ namespace Renderer
sampDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP;
sampDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP;
sampDesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP;
sampDesc.Filter = D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT;
sampDesc.Filter = D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT;
if (pDevice->CreateSamplerState( &sampDesc, &pFullscreenQuadSamplerState ) != S_OK)
return false;
......@@ -1054,6 +1054,10 @@ namespace Renderer
pContext->OMSetBlendState( pGUIBlendState, factor, 0xFFFFFFFF );
pContext->RSSetState( pGUIRasterizerState );
// Disable previous texture
ID3D11ShaderResourceView * dummy[1] = { NULL };
pContext->PSSetShaderResources( 0, 1, dummy );
ID3D11Buffer * buffers[] = { pGUIQuadVB };
UINT stride[] = { sizeof(float) * 7 };
UINT offset[] = { 0 };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment