Merge pull request #118 from lioncash/zgs

Minor changes to ZeroGS
This commit is contained in:
sudonim1 2014-07-16 18:08:12 +01:00
commit 06dfc4e6ef
3 changed files with 5 additions and 5 deletions

View File

@ -70,7 +70,7 @@ static HRESULT LoadShaderFromType(const char* srcfile, int type, int texfilter,
if( FAILED(hr) )
{
printf("Failed to load %s\n%s\n", str, pError->GetBufferPointer());
DEBUG_LOG("Failed to load %s\n%s\n", str, reinterpret_cast<const char*>(pError->GetBufferPointer()));
SAFE_RELEASE(pShader);
SAFE_RELEASE(pError);
return hr;

View File

@ -1428,7 +1428,7 @@ public:
V(D3DXCompileShaderFromFile(EFFECT_NAME"ps2hw.fx", pmacros, pInclude, name, shaderver, ShaderFlagsVS, &pShader, &pError, NULL)); \
if( FAILED(hr) ) \
{ \
DEBUG_LOG("Failed to load vs %s: \n%s\n", name, pError->GetBufferPointer()); \
DEBUG_LOG("Failed to load vs %s: \n%s\n", name, reinterpret_cast<const char*>(pError->GetBufferPointer())); \
SAFE_RELEASE(pShader); \
SAFE_RELEASE(pError); \
return hr; \
@ -1444,7 +1444,7 @@ public:
V(D3DXCompileShaderFromFile(EFFECT_NAME"ps2hw.fx", pmacros, pInclude, name, shmodel, ShaderFlagsPS, &pShader, &pError, NULL)); \
if( FAILED(hr) ) \
{ \
DEBUG_LOG("Failed to load ps %s: \n%s\n", name, pError->GetBufferPointer()); \
DEBUG_LOG("Failed to load ps %s: \n%s\n", name, reinterpret_cast<const char*>(pError->GetBufferPointer())); \
SAFE_RELEASE(pShader); \
SAFE_RELEASE(pError); \
return hr; \
@ -2070,7 +2070,7 @@ void ZeroGS::Flush(int context)
#ifdef PCSX2_DEBUG
if( g_bSaveFlushedFrame & 0x80000000 ) {
char str[255];
sprintf(str, "rndr.tga", g_SaveFrameNum);
sprintf(str, "rndr%u.tga", g_SaveFrameNum);
D3DXSaveSurfaceToFile(str, D3DXIFF_TGA, curvb.prndr->psurf, NULL, NULL);
}
#endif

View File

@ -2529,7 +2529,7 @@ void ZeroGS::Flush(int context)
#ifdef _DEBUG
if( g_bSaveFlushedFrame & 0x80000000 ) {
char str[255];
sprintf(str, "rndr.tga", g_SaveFrameNum);
sprintf(str, "rndr%u.tga", g_SaveFrameNum);
SaveRenderTarget(str, curvb.prndr->fbw, curvb.prndr->fbh, 0);
}
#endif