citra-emu
/
citra-canary
Archived
1
0
Fork 0

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
1 changed files with 2 additions and 0 deletions

View File

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