VideoCommon: Only use interface blocks when geometry shaders are supported.

This commit is contained in:
Jules Blok
2014-12-17 09:18:40 +01:00
parent 1af3d8447a
commit 69df23f725
3 changed files with 22 additions and 10 deletions

View File

@ -317,13 +317,20 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
// is always inside the primitive.
// Without MSAA, this flag is defined to have no effect.
uid_data->stereo = g_ActiveConfig.iStereoMode > 0;
out.Write("in VertexData {\n");
out.Write("\tcentroid VS_OUTPUT o;\n");
if (g_ActiveConfig.backend_info.bSupportsGeometryShaders)
{
out.Write("in VertexData {\n");
out.Write("\tcentroid VS_OUTPUT o;\n");
if (g_ActiveConfig.iStereoMode > 0)
out.Write("\tflat int layer;\n");
if (g_ActiveConfig.iStereoMode > 0)
out.Write("\tflat int layer;\n");
out.Write("};\n");
out.Write("};\n");
}
else
{
out.Write("centroid in VS_OUTPUT o;\n");
}
out.Write("void main()\n{\n");