diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-11 05:47:18 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-11 05:47:18 +0000 |
| commit | 09b8471f2d4e0991ecaeb06394cc7492c433473a (patch) | |
| tree | bc2011dc4268f69f2ff6a4044a6aa1c1f0b0ce0c /Projects/Asteroids/src/asteroids_DE.cpp | |
| parent | CMake: Added grouping of projects in VS solution; removed VS configurations f... (diff) | |
| download | DiligentEngine-09b8471f2d4e0991ecaeb06394cc7492c433473a.tar.gz DiligentEngine-09b8471f2d4e0991ecaeb06394cc7492c433473a.zip | |
Enabled cmake build
Diffstat (limited to 'Projects/Asteroids/src/asteroids_DE.cpp')
| -rw-r--r-- | Projects/Asteroids/src/asteroids_DE.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<std::codecvt_utf8_utf16<wchar_t>> 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); } |
