Ver código fonte

Properly remove texture from handle map

Karl Zylinski 6 meses atrás
pai
commit
5ea829c83c
1 arquivos alterados com 2 adições e 0 exclusões
  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) {