GeometryShaderGen: Declare the vertex array size.

This commit is contained in:
Jules Blok 2014-11-16 02:15:43 +01:00
parent 422125c1a9
commit 106df04e8e
2 changed files with 2 additions and 2 deletions

View File

@ -401,7 +401,7 @@ void TextureCache::CompileShaders()
const char *GProgram = (g_ActiveConfig.iStereoMode > 0) ?
"layout(triangles) in;\n"
"layout(triangle_strip, max_vertices = 6) out;\n"
"in vec3 v_uv0[];\n"
"in vec3 v_uv0[3];\n"
"out vec3 f_uv0;\n"
"SAMPLER_BINDING(9) uniform sampler2DArray samp9;\n"
"void main()\n"

View File

@ -64,7 +64,7 @@ static inline void GenerateGeometryShader(T& out, u32 components, API_TYPE ApiTy
GenerateVSOutputStruct(out, ApiType);
out.Write("centroid in VS_OUTPUT o[];\n");
out.Write("centroid in VS_OUTPUT o[3];\n");
out.Write("centroid out VS_OUTPUT f;\n");
out.Write("flat out int layer;\n");