소스 검색

Fix empty RIDs in VisualServer.texture_debug_usage()

hoontee 4 년 전
부모
커밋
bb36823589
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      drivers/gles2/rasterizer_storage_gles2.cpp
  2. 1 0
      drivers/gles3/rasterizer_storage_gles3.cpp

+ 1 - 0
drivers/gles2/rasterizer_storage_gles2.cpp

@@ -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;

+ 1 - 0
drivers/gles3/rasterizer_storage_gles3.cpp

@@ -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;