File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,26 @@ static void ImGuiApp_ImplNull_Render(ImGuiApp* app_opaque)
222
222
IM_UNUSED (app_opaque);
223
223
ImDrawData* draw_data = ImGui::GetDrawData ();
224
224
225
+ #ifdef IMGUI_HAS_TEXTURES
226
+ for (ImTextureData* tex : ImGui::GetPlatformIO ().Textures )
227
+ {
228
+ if (tex->Status == ImTextureStatus_WantCreate)
229
+ {
230
+ tex->SetTexUserID (0x42424242 );
231
+ tex->Status = ImTextureStatus_OK;
232
+ }
233
+ if (tex->Status == ImTextureStatus_WantUpdates)
234
+ {
235
+ tex->Status = ImTextureStatus_OK;
236
+ }
237
+ if (tex->Status == ImTextureStatus_WantDestroy)
238
+ {
239
+ tex->SetTexUserID (ImTextureUserID_Invalid);
240
+ tex->Status = ImTextureStatus_Destroyed;
241
+ }
242
+ }
243
+ #endif
244
+
225
245
#ifdef IMGUI_HAS_VIEWPORT
226
246
ImGuiIO& io = ImGui::GetIO ();
227
247
if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
You can’t perform that action at this time.
0 commit comments