Skip to content

Commit 7e9c12b

Browse files
committed
Revert "Add OES_standard_derivatives if available"
This reverts commit 21ef5de.
1 parent 5673794 commit 7e9c12b

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

src/openfl/display/OpenGLRenderer.hx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import lime.math.Matrix4;
5555
class OpenGLRenderer extends DisplayObjectRenderer
5656
{
5757
@:noCompletion private static var __blendMinMaxSupported:Null<Bool>;
58-
@:noCompletion private static var __standardDerivativesSupported:Null<Bool>;
5958
@:noCompletion private static var __complexBlendsSupported:Null<Bool>;
6059
@:noCompletion private static var __coherentBlendsSupported:Null<Bool>;
6160
@:noCompletion private static var __sRGBWriteControlSupported:Null<Bool>;
@@ -173,10 +172,6 @@ class OpenGLRenderer extends DisplayObjectRenderer
173172
{
174173
__coherentBlendsSupported = exts.contains("KHR_blend_equation_advanced_coherent");
175174
}
176-
if (__standardDerivativesSupported == null)
177-
{
178-
__standardDerivativesSupported = exts.contains("OES_standard_derivatives");
179-
}
180175

181176
#if (js && html5)
182177
__softwareRenderer = new CanvasRenderer(null);

src/openfl/display/Shader.hx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ class Shader
627627
}
628628

629629
var complexBlendsSupported = OpenGLRenderer.__complexBlendsSupported && isFragment;
630-
var standardDerivativesSupported = OpenGLRenderer.__standardDerivativesSupported && isFragment;
631630

632631
#if lime
633632
if (__context.__context.type == OPENGL)
@@ -654,11 +653,6 @@ class Shader
654653
#end
655654
}
656655

657-
if (standardDerivativesSupported)
658-
{
659-
extensions += "#extension GL_OES_standard_derivatives : enable\n";
660-
}
661-
662656
// #version must be the first directive and cannot be repeated,
663657
// while #extension directives must be before any non-preprocessor tokens.
664658

0 commit comments

Comments
 (0)