gl_shader_gen.cpp: Fix separable shaders when GL_EXT_clip_cull_distance is not supported

This commit is contained in:
SachinVin 2021-07-23 23:55:19 +05:30
parent 80b8d66017
commit 80799b1e5d

View File

@ -102,7 +102,9 @@ static std::string GetVertexInterfaceDeclaration(bool is_output, bool separable_
out += R"(
out gl_PerVertex {
vec4 gl_Position;
#if !defined(CITRA_GLES) || defined(GL_EXT_clip_cull_distance)
float gl_ClipDistance[2];
#endif // !defined(CITRA_GLES) || defined(GL_EXT_clip_cull_distance)
};
)";
}