From bb36823589b39c5513df211a8224d048ce63ad6d Mon Sep 17 00:00:00 2001 From: hoontee <5272529+hoontee@users.noreply.github.com> Date: Sun, 10 Jan 2021 20:52:23 -0600 Subject: [PATCH] Fix empty RIDs in VisualServer.texture_debug_usage() --- drivers/gles2/rasterizer_storage_gles2.cpp | 1 + drivers/gles3/rasterizer_storage_gles3.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index d296826601f..df6ae0ef71c 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -1117,6 +1117,7 @@ void RasterizerStorageGLES2::texture_debug_usage(List *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; diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 9d852a072e3..d1365e0ba04 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -1564,6 +1564,7 @@ void RasterizerStorageGLES3::texture_debug_usage(List *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;