summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-11-29 23:45:38 +0100
committerGitHub <noreply@github.com>2022-11-29 23:45:38 +0100
commitd75a6b5a6d74de268d61efe178dfcfc13c38450d (patch)
treec95866d528e2671e48a62eaa7c60ec682f4cbde0 /drivers
parentcdd99e9bec16db60efd894a06826f6fea139d00d (diff)
parent9141984e7ebc0bdbdd474cc6ced63e388f95a686 (diff)
Merge pull request #69355 from clayjohn/android-GLES3
Enable GLES3 on Android
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles3/shaders/stdlib_inc.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/stdlib_inc.glsl b/drivers/gles3/shaders/stdlib_inc.glsl
index d5051760d7..d819940b1d 100644
--- a/drivers/gles3/shaders/stdlib_inc.glsl
+++ b/drivers/gles3/shaders/stdlib_inc.glsl
@@ -38,7 +38,6 @@ vec2 unpackSnorm2x16(uint p) {
vec2 v = vec2(float(p & uint(0xffff)), float(p >> uint(16)));
return clamp((v - 32767.0) * vec2(0.00003051851), vec2(-1.0), vec2(1.0));
}
-#endif
uint packUnorm4x8(vec4 v) {
uvec4 uv = uvec4(round(clamp(v, vec4(0.0), vec4(1.0)) * 255.0));
@@ -58,3 +57,5 @@ vec4 unpackSnorm4x8(uint p) {
vec4 v = vec4(float(p & uint(0xff)), float((p >> uint(8)) & uint(0xff)), float((p >> uint(16)) & uint(0xff)), float(p >> uint(24)));
return clamp((v - vec4(127.0)) * vec4(0.00787401574), vec4(-1.0), vec4(1.0));
}
+
+#endif