Kaynağa Gözat

Application running DX11 shuts down properly

Marko Pintera 13 yıl önce
ebeveyn
işleme
760817ac66
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      CamelotRenderer/Source/CmTexture.cpp

+ 1 - 0
CamelotRenderer/Source/CmTexture.cpp

@@ -281,6 +281,7 @@ namespace CamelotEngine {
 		{
 		{
 			TextureViewReference* toRemove = iterFind->second;
 			TextureViewReference* toRemove = iterFind->second;
 
 
+			texture->destroyView(iterFind->second->view);
 			texture->mTextureViews.erase(iterFind);
 			texture->mTextureViews.erase(iterFind);
 
 
 			delete toRemove;
 			delete toRemove;