diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-06 18:03:57 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-06 18:03:57 +0000 |
| commit | 76a1a90ee26e3f2e78fab018bbbfc43ddc85d849 (patch) | |
| tree | ad4f6db4cee83516a5f1e1867b4113fa64f32dec /Graphics/GraphicsEngineMetal | |
| parent | Fixed few more clang warnings (diff) | |
| download | DiligentCore-76a1a90ee26e3f2e78fab018bbbfc43ddc85d849.tar.gz DiligentCore-76a1a90ee26e3f2e78fab018bbbfc43ddc85d849.zip | |
Removed unused m_ResourceLayout member from ShaderVariableManagerVk and ShaderVariableManagerD3D12 plus a bunch of minor updates to fix clang warnings
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
| -rw-r--r-- | Graphics/GraphicsEngineMetal/src/TextureMtlImpl.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineMetal/src/TextureMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/TextureMtlImpl.mm index 70f54ac8..b89b0c35 100644 --- a/Graphics/GraphicsEngineMetal/src/TextureMtlImpl.mm +++ b/Graphics/GraphicsEngineMetal/src/TextureMtlImpl.mm @@ -40,7 +40,7 @@ TextureMtlImpl :: TextureMtlImpl(IReferenceCounters* pRefCounters, { LOG_ERROR_AND_THROW("Textures are not implemented in Metal backend"); - if( TexDesc.Usage == USAGE_STATIC && pInitData == nullptr || pInitData->pSubResources == nullptr ) + if( (TexDesc.Usage == USAGE_STATIC && pInitData == nullptr) || pInitData->pSubResources == nullptr ) LOG_ERROR_AND_THROW("Static Texture must be initialized with data at creation time"); SetState(RESOURCE_STATE_UNDEFINED); } |
