mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
remove intel pixel shader hack
did not work correctly and made warnings on dx11
This commit is contained in:
parent
e7c93b8ac3
commit
d0e8217714
1 changed files with 0 additions and 4 deletions
|
@ -770,10 +770,6 @@ const char *GeneratePixelShaderCode(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType
|
||||||
}
|
}
|
||||||
WRITE(p, "depth = zCoord;\n");
|
WRITE(p, "depth = zCoord;\n");
|
||||||
|
|
||||||
// mark all NaNs. Intel yield NaNs because of UBO driver bug. This here is a hack to blame the driver
|
|
||||||
WRITE (p, "\tif(isnan(prev.x) || isinf(prev.x) || isnan(prev.y) || isinf(prev.y) || isnan(prev.z) || isinf(prev.z) || isnan(prev.w) || isinf(prev.w))\n"); // TODO: on intel/mesa, here will be a division by zero
|
|
||||||
WRITE (p, "\t\tprev = float4(0.0f, 0.0f, 0.0f, 0.0f);\n");
|
|
||||||
|
|
||||||
if (dstAlphaMode == DSTALPHA_ALPHA_PASS)
|
if (dstAlphaMode == DSTALPHA_ALPHA_PASS)
|
||||||
WRITE(p, "\tocol0 = float4(prev.rgb, " I_ALPHA"[0].a);\n");
|
WRITE(p, "\tocol0 = float4(prev.rgb, " I_ALPHA"[0].a);\n");
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue