Fix #extension crash on intel

This commit is contained in:
Jozufozu 2021-12-15 13:27:06 -08:00
parent cb5047f677
commit 17fb8d34ed
2 changed files with 1 additions and 1 deletions

View file

@ -56,6 +56,7 @@ public class WorldShader {
finalSource.append("#version ")
.append(template.getVersion())
.append('\n')
.append("#extension GL_ARB_conservative_depth : enable\n")
.append("#define ")
.append(type.define) // special case shader type declaration
.append('\n')

View file

@ -28,7 +28,6 @@ void FLWFinalizeWorldPos(inout vec4 worldPos) {
// optimize discard usage
#if defined(ALPHA_DISCARD)
#if defined(GL_ARB_conservative_depth)
#extension GL_ARB_conservative_depth : enable
layout (depth_greater) out float gl_FragDepth;
#endif
#endif