Skip to content

Commit

Permalink
Merge pull request #15106 from unknownbrackets/depth-cull
Browse files Browse the repository at this point in the history
GLES: Explicitly enable ARB_cull_distance
  • Loading branch information
hrydgard authored Nov 6, 2021
2 parents 35746ca + 142db5d commit 1f502b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GPU/Common/VertexShaderGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ bool GenerateVertexShader(const VShaderID &id, char *buffer, const ShaderLanguag
if (gl_extensions.APPLE_clip_distance && id.Bit(VS_BIT_VERTEX_RANGE_CULLING)) {
gl_exts.push_back("#extension GL_APPLE_clip_distance : enable");
}
if (gl_extensions.ARB_cull_distance && id.Bit(VS_BIT_VERTEX_RANGE_CULLING)) {
gl_exts.push_back("#extension GL_ARB_cull_distance : enable");
}
}
ShaderWriter p(buffer, compat, ShaderStage::Vertex, gl_exts.data(), gl_exts.size());

Expand Down

0 comments on commit 1f502b8

Please sign in to comment.