Fix shader build issues with sampler1DShadow and texture

This commit is contained in:
Thog 2018-12-07 16:50:18 +01:00
commit f04853ee10
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6

View file

@ -1371,7 +1371,7 @@ namespace Ryujinx.Graphics.Gal.Shader
case 1: case 1:
if (HasDepth) if (HasDepth)
{ {
return $"vec2({GetOperExpr(Op, Meta.Coordinates[0])}{DepthArgument})"; return $"vec3({GetOperExpr(Op, Meta.Coordinates[0])}, 0.0{DepthArgument})";
} }
return GetOperExpr(Op, Meta.Coordinates[0]); return GetOperExpr(Op, Meta.Coordinates[0]);