소스 검색

Properly remove texture from handle map

Karl Zylinski 6 달 전
부모
커밋
5ea829c83c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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) {