summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2019-02-22 16:26:19 -0300
committerJuan Linietsky <juan@godotengine.org>2019-02-22 16:27:00 -0300
commit16e67388a2c46e9d74d866a6cadd4351e8c57a12 (patch)
tree1c54e1da48d73b13d023ab96dafb6b271a5bf33c /drivers/gles3
parent67616251550d50266def27d426697c3c79bc6a92 (diff)
Properly update materials when adding surface, fixes #23790
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp
index 5189017437..99e594d242 100644
--- a/drivers/gles3/rasterizer_storage_gles3.cpp
+++ b/drivers/gles3/rasterizer_storage_gles3.cpp
@@ -3620,7 +3620,7 @@ void RasterizerStorageGLES3::mesh_add_surface(RID p_mesh, uint32_t p_format, VS:
}
mesh->surfaces.push_back(surface);
- mesh->instance_change_notify(true, false);
+ mesh->instance_change_notify(true, true);
info.vertex_mem += surface->total_data_size;
}