mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Fix compilation errors with g++4.7
This commit is contained in:
parent
b79d8d9e10
commit
1efabea9b4
3 changed files with 8 additions and 8 deletions
|
@ -631,9 +631,9 @@ const char *GeneratePixelShaderCode(PSGRENDER_MODE PSGRenderMode, API_TYPE ApiTy
|
|||
{
|
||||
// the screen space depth value = far z + (clip z / clip w) * z range
|
||||
if (numTexgen < 7)
|
||||
WRITE(p, "float zCoord = "I_ZBIAS"[1].x + (clipPos.z / clipPos.w) * "I_ZBIAS"[1].y;\n");
|
||||
WRITE(p, "float zCoord = " I_ZBIAS "[1].x + (clipPos.z / clipPos.w) * " I_ZBIAS "[1].y;\n");
|
||||
else
|
||||
WRITE(p, "float zCoord = "I_ZBIAS"[1].x + (uv2.w / uv3.w) * "I_ZBIAS"[1].y;\n");
|
||||
WRITE(p, "float zCoord = " I_ZBIAS "[1].x + (uv2.w / uv3.w) * " I_ZBIAS "[1].y;\n");
|
||||
}
|
||||
char* pmainstart = p;
|
||||
if(PSGRenderMode == PSGRENDER_ZCOMPLOCK && !DepthTextureEnable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue