summaryrefslogtreecommitdiff
path: root/drivers/gles3/shaders
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2019-11-21 07:44:09 -0800
committerclayjohn <claynjohn@gmail.com>2019-11-21 07:44:09 -0800
commit203fb1b3484f621984e4595986cc77c9b9174d6a (patch)
treef6ec54126a198ead221c8c888ee2f1778bd40d4b /drivers/gles3/shaders
parent37b230fe3af3c7e20a6f938d03b61a79b117d354 (diff)
Fix GL error by properly using float uniform
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r--drivers/gles3/shaders/cubemap_filter.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gles3/shaders/cubemap_filter.glsl b/drivers/gles3/shaders/cubemap_filter.glsl
index d83a109cb9..f94ac8c81c 100644
--- a/drivers/gles3/shaders/cubemap_filter.glsl
+++ b/drivers/gles3/shaders/cubemap_filter.glsl
@@ -35,7 +35,7 @@ uniform sampler2D source_dual_paraboloid; //texunit:0
#endif
#if defined(USE_SOURCE_DUAL_PARABOLOID) || defined(COMPUTE_IRRADIANCE)
-uniform int source_mip_level;
+uniform float source_mip_level;
#endif
#if !defined(USE_SOURCE_DUAL_PARABOLOID_ARRAY) && !defined(USE_SOURCE_PANORAMA) && !defined(USE_SOURCE_DUAL_PARABOLOID)
@@ -236,7 +236,7 @@ vec4 textureDualParaboloid(vec3 normal) {
if (norm.z < 0.0) {
norm.y = 0.5 - norm.y + 0.5;
}
- return textureLod(source_dual_paraboloid, norm.xy, float(source_mip_level));
+ return textureLod(source_dual_paraboloid, norm.xy, source_mip_level);
}
#endif