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;