mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #69001 from dzil123/fix_rendering_checks
Fix various missing rendering parameter checks
This commit is contained in:
commit
0668e0f5a9
3 changed files with 5 additions and 0 deletions
|
|
@ -1686,6 +1686,8 @@ void MeshStorage::multimesh_set_buffer(RID p_multimesh, const Vector<float> &p_b
|
|||
uint32_t old_stride = multimesh->xform_format == RS::MULTIMESH_TRANSFORM_2D ? 8 : 12;
|
||||
old_stride += multimesh->uses_colors ? 4 : 0;
|
||||
old_stride += multimesh->uses_custom_data ? 4 : 0;
|
||||
ERR_FAIL_COND(p_buffer.size() != (multimesh->instances * (int)old_stride));
|
||||
|
||||
for (int i = 0; i < multimesh->instances; i++) {
|
||||
{
|
||||
float *dataptr = w + i * old_stride;
|
||||
|
|
|
|||
|
|
@ -806,6 +806,7 @@ void TextureStorage::texture_2d_update(RID p_texture, const Ref<Image> &p_image,
|
|||
texture_set_data(p_texture, p_image, p_layer);
|
||||
#ifdef TOOLS_ENABLED
|
||||
Texture *tex = texture_owner.get_or_null(p_texture);
|
||||
ERR_FAIL_COND(!tex);
|
||||
|
||||
tex->image_cache_2d.unref();
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue