diff options
author | clayjohn <claynjohn@gmail.com> | 2019-10-26 10:17:22 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2019-10-26 10:17:22 -0700 |
commit | 6ec7686a0cfc26c2d676c0dd78c24b31134a2261 (patch) | |
tree | 067abe8de9ce04fbfb601350f97eb7d67b8f6529 /drivers/gles2/rasterizer_storage_gles2.cpp | |
parent | 29990d0b1efb264618ef334e573d5f62ece1d0b2 (diff) |
Fix shadow mapping with RGBA textures on html
Diffstat (limited to 'drivers/gles2/rasterizer_storage_gles2.cpp')
-rw-r--r-- | drivers/gles2/rasterizer_storage_gles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index 451d6adaa9..a58ae8ee93 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -5771,7 +5771,7 @@ void RasterizerStorageGLES2::initialize() { config.support_depth_cubemaps = true; #else config.use_rgba_2d_shadows = !(config.float_texture_supported && config.extensions.has("GL_EXT_texture_rg")); - config.support_depth_texture = config.extensions.has("GL_OES_depth_texture"); + config.support_depth_texture = config.extensions.has("GL_OES_depth_texture") || config.extensions.has("WEBGL_depth_texture"); config.use_rgba_3d_shadows = !config.support_depth_texture; config.support_depth_cubemaps = config.extensions.has("GL_OES_depth_texture_cube_map"); #endif |