diff options
| author | degasus <wickmarkus@web.de> | 2013-02-21 17:44:56 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2013-02-21 17:44:56 +0100 |
| commit | d0e8217714ff453938f83d97879dbbc347b33d72 (patch) | |
| tree | 5f5265a03d13027a822ed5063808c75ce0c0c951 /Source/Core/VideoCommon | |
| parent | e7c93b8ac30504d577d06c2dcf342043cc27ddab (diff) | |
remove intel pixel shader hack
did not work correctly and made warnings on dx11
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index bd2fb303f6..460d605164 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -770,10 +770,6 @@ const char *GeneratePixelShaderCode(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType } 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) WRITE(p, "\tocol0 = float4(prev.rgb, " I_ALPHA"[0].a);\n"); else |
