mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-29 08:26:37 +01:00
Fix #extension crash on intel
This commit is contained in:
parent
cb5047f677
commit
17fb8d34ed
2 changed files with 1 additions and 1 deletions
|
@ -56,6 +56,7 @@ public class WorldShader {
|
||||||
finalSource.append("#version ")
|
finalSource.append("#version ")
|
||||||
.append(template.getVersion())
|
.append(template.getVersion())
|
||||||
.append('\n')
|
.append('\n')
|
||||||
|
.append("#extension GL_ARB_conservative_depth : enable\n")
|
||||||
.append("#define ")
|
.append("#define ")
|
||||||
.append(type.define) // special case shader type declaration
|
.append(type.define) // special case shader type declaration
|
||||||
.append('\n')
|
.append('\n')
|
||||||
|
|
|
@ -28,7 +28,6 @@ void FLWFinalizeWorldPos(inout vec4 worldPos) {
|
||||||
// optimize discard usage
|
// optimize discard usage
|
||||||
#if defined(ALPHA_DISCARD)
|
#if defined(ALPHA_DISCARD)
|
||||||
#if defined(GL_ARB_conservative_depth)
|
#if defined(GL_ARB_conservative_depth)
|
||||||
#extension GL_ARB_conservative_depth : enable
|
|
||||||
layout (depth_greater) out float gl_FragDepth;
|
layout (depth_greater) out float gl_FragDepth;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue