summaryrefslogtreecommitdiff
path: root/drivers/gles2/rasterizer_storage_gles2.cpp
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/gles2/rasterizer_storage_gles2.cpp
parent67616251550d50266def27d426697c3c79bc6a92 (diff)
Properly update materials when adding surface, fixes #23790
Diffstat (limited to 'drivers/gles2/rasterizer_storage_gles2.cpp')
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp
index 1470b49875..9def9d27e7 100644
--- a/drivers/gles2/rasterizer_storage_gles2.cpp
+++ b/drivers/gles2/rasterizer_storage_gles2.cpp
@@ -2235,7 +2235,7 @@ void RasterizerStorageGLES2::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;
}