mirror of https://github.com/PCSX2/pcsx2.git
GSdx: quick fix for unreal tournament (and others using DATE)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5075 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
9ec7f14fa8
commit
5de9f84fae
|
@ -329,6 +329,8 @@ void GSRendererDX::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sourc
|
|||
|
||||
uint8 afix = context->ALPHA.FIX;
|
||||
|
||||
SetupIA();
|
||||
|
||||
dev->SetupOM(om_dssel, om_bsel, afix);
|
||||
dev->SetupVS(vs_sel, &vs_cb);
|
||||
dev->SetupGS(gs_sel);
|
||||
|
|
|
@ -33,6 +33,7 @@ class GSRendererDX : public GSRendererHW
|
|||
|
||||
protected:
|
||||
virtual void DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Source* tex);
|
||||
virtual void SetupIA() = 0;
|
||||
virtual void UpdateFBA(GSTexture* rt) {}
|
||||
|
||||
public:
|
||||
|
|
|
@ -37,7 +37,7 @@ bool GSRendererDX11::CreateDevice(GSDevice* dev)
|
|||
return true;
|
||||
}
|
||||
|
||||
void GSRendererDX11::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Source* tex)
|
||||
void GSRendererDX11::SetupIA()
|
||||
{
|
||||
GSDevice11* dev = (GSDevice11*)m_dev;
|
||||
|
||||
|
@ -71,6 +71,4 @@ void GSRendererDX11::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sou
|
|||
}
|
||||
|
||||
dev->IASetPrimitiveTopology(t);
|
||||
|
||||
__super::DrawPrims(rt, ds, tex);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
class GSRendererDX11 : public GSRendererDX
|
||||
{
|
||||
protected:
|
||||
void DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Source* tex);
|
||||
void SetupIA();
|
||||
|
||||
public:
|
||||
GSRendererDX11();
|
||||
|
|
|
@ -56,7 +56,7 @@ bool GSRendererDX9::CreateDevice(GSDevice* dev)
|
|||
return true;
|
||||
}
|
||||
|
||||
void GSRendererDX9::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Source* tex)
|
||||
void GSRendererDX9::SetupIA()
|
||||
{
|
||||
D3DPRIMITIVETYPE topology;
|
||||
|
||||
|
@ -219,8 +219,6 @@ void GSRendererDX9::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
|||
dev->IASetIndexBuffer(m_index.buff, m_index.tail);
|
||||
|
||||
dev->IASetPrimitiveTopology(topology);
|
||||
|
||||
__super::DrawPrims(rt, ds, tex);
|
||||
}
|
||||
|
||||
void GSRendererDX9::UpdateFBA(GSTexture* rt)
|
||||
|
|
|
@ -34,7 +34,7 @@ protected:
|
|||
Direct3DBlendState9 bs;
|
||||
} m_fba;
|
||||
|
||||
void DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Source* tex);
|
||||
void SetupIA();
|
||||
void UpdateFBA(GSTexture* rt);
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue