Merge pull request #45087 from hoontee/3.2

[3.2] Fix empty RIDs in VisualServer.texture_debug_usage()
This commit is contained in:
Rémi Verschelde 2021-03-22 10:13:15 +01:00 committed by GitHub
commit c0b3ad2f7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -1117,6 +1117,7 @@ void RasterizerStorageGLES2::texture_debug_usage(List<VS::TextureInfo> *r_info)
if (!t)
continue;
VS::TextureInfo tinfo;
tinfo.texture = E->get();
tinfo.path = t->path;
tinfo.format = t->format;
tinfo.width = t->alloc_width;

View file

@ -1564,6 +1564,7 @@ void RasterizerStorageGLES3::texture_debug_usage(List<VS::TextureInfo> *r_info)
if (!t)
continue;
VS::TextureInfo tinfo;
tinfo.texture = E->get();
tinfo.path = t->path;
tinfo.format = t->format;
tinfo.width = t->alloc_width;