small commit,but should fix 2 big issues:
* clear and flicker problem in d3d, backbuffer clearing was commented out, (if this was on right let me know and I'll revert). * alpha problem introduced by my modifications to the tev, must been sleeping when i wrote that code, should be fixed now. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4471 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
08b2686d90
commit
a31eb24955
|
@ -898,12 +898,12 @@ void SampleTexture(char *&p, const char *destination, const char *texcoords, con
|
|||
static const char *tevAlphaFuncsTable[] =
|
||||
{
|
||||
"(false)", //ALPHACMP_NEVER 0
|
||||
"(prev.a < %s + %f)", //ALPHACMP_LESS 1
|
||||
"(abs( prev.a - %s ) <= %f)", //ALPHACMP_EQUAL 2
|
||||
"(prev.a <= %s + %f)", //ALPHACMP_LEQUAL 3
|
||||
"(prev.a > %s - %f)", //ALPHACMP_GREATER 4
|
||||
"(abs( prev.a - %s ) > %f)", //ALPHACMP_NEQUAL 5
|
||||
"(prev.a >= %s - %f)", //ALPHACMP_GEQUAL 6
|
||||
"(prev.a <= %s - %f)", //ALPHACMP_LESS 1
|
||||
"(abs( prev.a - %s ) < %f)", //ALPHACMP_EQUAL 2
|
||||
"(prev.a < %s + %f)", //ALPHACMP_LEQUAL 3
|
||||
"(prev.a >= %s + %f)", //ALPHACMP_GREATER 4
|
||||
"(abs( prev.a - %s ) >= %f)", //ALPHACMP_NEQUAL 5
|
||||
"(prev.a > %s - %f)", //ALPHACMP_GEQUAL 6
|
||||
"(true)" //ALPHACMP_ALWAYS 7
|
||||
};
|
||||
|
||||
|
|
|
@ -286,7 +286,7 @@ static void EFBTextureToD3DBackBuffer(const EFBRectangle& sourceRc)
|
|||
//pSprite->End();
|
||||
//pSprite->Release();
|
||||
|
||||
//D3D::dev->Clear(0,NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER,D3DCOLOR_XRGB(0,0,0),1.0f,0);
|
||||
D3D::dev->Clear(0,NULL, D3DCLEAR_TARGET,D3DCOLOR_XRGB(0,0,0),1.0f,0);
|
||||
|
||||
// todo, to draw the EFB texture to the backbuffer instead of StretchRect
|
||||
D3D::dev->StretchRect(FBManager::GetEFBColorRTSurface(), src_rect.AsRECT(),
|
||||
|
|
Loading…
Reference in New Issue