From 09b8471f2d4e0991ecaeb06394cc7492c433473a Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 10 Dec 2017 21:47:18 -0800 Subject: Enabled cmake build --- Projects/Asteroids/src/asteroids_DE.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Projects/Asteroids/src/asteroids_DE.cpp') diff --git a/Projects/Asteroids/src/asteroids_DE.cpp b/Projects/Asteroids/src/asteroids_DE.cpp index a657881..73ba096 100644 --- a/Projects/Asteroids/src/asteroids_DE.cpp +++ b/Projects/Asteroids/src/asteroids_DE.cpp @@ -592,7 +592,6 @@ void Asteroids::CreateGUIResources() auto control = i >= 0 ? (*mGUI)[i] : mSprite.get(); if (control->TextureFile().length() > 0 && mSpriteTextures.find(control->TextureFile()) == mSpriteTextures.end()) { std::wstring_convert> converter; - ID3D11ShaderResourceView* textureSRV = nullptr; auto path = NarrowString(converter.from_bytes(control->TextureFile()).c_str()); TextureLoadInfo loadInfo; loadInfo.IsSRGB = true; @@ -722,7 +721,7 @@ void Asteroids::Render(float frameTime, const OrbitCamera& camera, const Setting if( m_BindingMode == BindingMode::TextureMutable ) { - for(auto &srb=mAsteroidsSRBs.begin(); srb!=mAsteroidsSRBs.end(); ++srb) + for(auto srb=mAsteroidsSRBs.begin(); srb!=mAsteroidsSRBs.end(); ++srb) { mDeviceCtxt->TransitionShaderResources(mAsteroidsPSO, *srb); } -- cgit v1.2.3