summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-01-14 19:17:07 +0100
committerdegasus <wickmarkus@web.de>2013-01-14 19:17:07 +0100
commit4c2dd093a3f52873046b02ce33b443bc1cf01367 (patch)
tree71eac07108f88c1d52682fc7c1828488c5cc1996 /Source/Core/VideoCommon
parentadeac6f4a5986b50d7f0ab87e6d28aa132350468 (diff)
fix d3d error
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
index f2872d93ad..26e33a9beb 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
@@ -740,11 +740,11 @@ const char *GeneratePixelShaderCode(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType
if (!Pretest)
{
// alpha test will always fail, so restart the shader and just make it an empty function
- WRITE(p, "\tocol0 = float4(0.0f);\n");
+ WRITE(p, "\tocol0 = float4(0.0f, 0.0f, 0.0f, 0.0f);\n");
if(DepthTextureEnable)
WRITE(p, "\tdepth = 1.f;\n");
if(dstAlphaMode == DSTALPHA_DUAL_SOURCE_BLEND)
- WRITE(p, "\tocol1 = float4(0.0f);\n");
+ WRITE(p, "\tocol1 = float4(0.0f, 0.0f, 0.0f, 0.0f);\n");
if (ApiType == API_OPENGL)
{
if (DepthTextureEnable)
@@ -1369,9 +1369,9 @@ static void WriteAlphaTest(char *&p, API_TYPE ApiType,DSTALPHA_MODE dstAlphaMode
WRITE(p, tevAlphaFuncsTable[compindex],alphaRef[1]);//lookup the second component from the alpha function table
WRITE(p, ")) {\n");
- WRITE(p, "\t\tocol0 = float4(0.0f);\n");
+ WRITE(p, "\t\tocol0 = float4(0.0f, 0.0f, 0.0f, 0.0f);\n");
if (dstAlphaMode == DSTALPHA_DUAL_SOURCE_BLEND)
- WRITE(p, "\t\tocol1 = float4(0.0f);\n");
+ WRITE(p, "\t\tocol1 = float4(0.0f, 0.0f, 0.0f, 0.0f);\n");
if (DepthTextureEnable)
WRITE(p, "\t\tdepth = 1.f;\n");