From 46af4b0a4b73a14f01a1aba9b0a8ab0bef05252a Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 22 Jan 2019 10:04:25 -0300 Subject: Changes to GLES2 renderer to not use cube shadows if not available, fixes #25132 --- drivers/gles3/rasterizer_scene_gles3.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gles3') diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index 1fba8535d8..02dbe096c5 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -1832,6 +1832,7 @@ void RasterizerSceneGLES3::_render_geometry(RenderList::Element *e) { storage->info.render.vertices_count += s->index_array_len * amount; } else #endif + if (s->index_array_len > 0) { glDrawElementsInstanced(gl_primitive[s->primitive], s->index_array_len, (s->array_len >= (1 << 16)) ? GL_UNSIGNED_INT : GL_UNSIGNED_SHORT, 0, amount); -- cgit v1.2.3