Skip to content

Commit 56267e1

Browse files
Jose Peredakevinrushforth
Jose Pereda
authored andcommitted
8237770: Error creating fragment phong shader on iOS
Reviewed-by: kcr
1 parent 95bf2c0 commit 56267e1

15 files changed

+45
-0
lines changed

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/diffuse_color.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/diffuse_none.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/diffuse_texture.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/main0Lights.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/main1Light.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/main2Lights.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/main3Lights.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/normalMap_none.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/normalMap_texture.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/selfIllum_none.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/selfIllum_texture.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/specular_color.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/specular_mix.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/specular_none.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

modules/javafx.graphics/src/main/resources/com/sun/prism/es2/glsl/specular_texture.frag

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
#ifdef GL_ES
2929

30+
#ifndef EXTENSION_APPLIED
31+
#define EXTENSION_APPLIED
3032
#extension GL_OES_standard_derivatives : enable
33+
#endif
3134

3235
// Define default float precision for fragment shaders
3336
#ifdef GL_FRAGMENT_PRECISION_HIGH

0 commit comments

Comments
 (0)