forked from mirrors/0ad
Fixes A8 framebuffer format used for LOS interpolation and enables smooth LOS by default.
Tested By: Langbart, mastoras Differential Revision: https://code.wildfiregames.com/D4654 This was SVN commit r26906.
This commit is contained in:
@@ -490,11 +490,11 @@ void CMiniMapTexture::RenderFinalTexture(
|
||||
DrawTexture(deviceCommandContext);
|
||||
deviceCommandContext->EndPass();
|
||||
|
||||
pipelineStateDesc.blendState.enabled = false;
|
||||
pipelineStateDesc.blendState.colorWriteMask =
|
||||
Renderer::Backend::ColorWriteMask::ALPHA;
|
||||
deviceCommandContext->SetGraphicsPipelineState(pipelineStateDesc);
|
||||
tech = g_Renderer.GetShaderManager().LoadEffect(str_minimap_los, CShaderDefines());
|
||||
deviceCommandContext->SetGraphicsPipelineState(
|
||||
tech->GetGraphicsPipelineStateDesc());
|
||||
deviceCommandContext->BeginPass();
|
||||
shader = tech->GetShader();
|
||||
|
||||
deviceCommandContext->SetTexture(
|
||||
shader->GetBindingSlot(str_baseTex), losTexture.GetTexture());
|
||||
|
||||
Reference in New Issue
Block a user