mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 11:51:48 +02:00
Looky, OSX found an issue for me.
This commit is contained in:
parent
66a245dd68
commit
c76593f6a2
1 changed files with 4 additions and 4 deletions
|
@ -730,13 +730,13 @@ const char *GeneratePixelShaderCode(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType
|
||||||
// wpos is in w of first 4 texcoords
|
// wpos is in w of first 4 texcoords
|
||||||
if(g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting)
|
if(g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 8; ++i)
|
for (int i = 0; i < 8; ++i)
|
||||||
WRITE(p, " float4 uv%d = gl_TexCoord[%d];\n", i, i);
|
WRITE(p, " float4 uv%d = gl_TexCoord[%d];\n", i, i);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < xfregs.numTexGen.numTexGens; ++i)
|
for (unsigned int i = 0; i < xfregs.numTexGen.numTexGens; ++i)
|
||||||
WRITE(p, " float%d uv%d = gl_TexCoord[%d]%s;\n", i < 4 ? 4 : 3 , i, i, i < 4 ? ".xyz" : "");
|
WRITE(p, " float%d uv%d = gl_TexCoord[%d]%s;\n", i < 4 ? 4 : 3 , i, i, i < 4 ? "" : ".xyz");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
WRITE(p, "void main()\n{\n");
|
WRITE(p, "void main()\n{\n");
|
||||||
|
|
Loading…
Reference in a new issue