forked from Mirrors/openclonk
D3D: Fix box drawing
Wrong blending mode led to a black background in text boxesstable-5.2
parent
8f7d3781e0
commit
97d7e483aa
|
@ -707,7 +707,7 @@ void CStdD3D::DrawQuadDw(SURFACE sfcTarget, float *ipVtx, DWORD dwClr1, DWORD dw
|
|||
// set blitting state
|
||||
int iAdditive = dwBlitMode & C4GFXBLIT_ADDITIVE;
|
||||
drawSolidState[iAdditive]->Apply();
|
||||
lpDevice->SetRenderState( D3DRS_DESTBLEND, iAdditive ? D3DBLEND_ONE : D3DBLEND_SRCALPHA );
|
||||
lpDevice->SetRenderState( D3DRS_DESTBLEND, iAdditive ? D3DBLEND_ONE : D3DBLEND_INVSRCALPHA );
|
||||
lpDevice->SetStreamSource(0, pVBClr, 0, sizeof(C4CLRVERTEX));
|
||||
lpDevice->SetFVF(D3DFVF_C4CLRVERTEX);
|
||||
// 2do: manual clipping?
|
||||
|
|
Loading…
Reference in New Issue