Prechádzať zdrojové kódy

Properly remove texture from handle map

Karl Zylinski 6 mesiacov pred
rodič
commit
5ea829c83c
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      karl2d_windows.odin

+ 2 - 0
karl2d_windows.odin

@@ -455,6 +455,8 @@ _destroy_texture :: proc(tex: Texture) {
 		t.tex->Release()
 		t.view->Release()	
 	}
+
+	hm.remove(&s.textures, tex.id)
 }
 
 _draw_texture :: proc(tex: Texture, pos: Vec2, tint := WHITE) {