diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-09-04 04:41:29 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-09-04 04:41:29 +0000 |
| commit | 5ee7aadba299a3ac8964d75ca0fa96e31b0cbe2e (patch) | |
| tree | b0b8f1803b1840b9e88145dc0c9d4e480fd2656c /Graphics/GraphicsEngine | |
| parent | Code formatting (diff) | |
| download | DiligentCore-5ee7aadba299a3ac8964d75ca0fa96e31b0cbe2e.tar.gz DiligentCore-5ee7aadba299a3ac8964d75ca0fa96e31b0cbe2e.zip | |
Fixed texture usage checks to avoid false warnings in OpenGL
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/src/Texture.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngine/src/Texture.cpp b/Graphics/GraphicsEngine/src/Texture.cpp index 3411ee20..62c66047 100644 --- a/Graphics/GraphicsEngine/src/Texture.cpp +++ b/Graphics/GraphicsEngine/src/Texture.cpp @@ -182,7 +182,6 @@ void ValidateUpdateDataParams( const TextureDesc& TexDesc, Uint32 MipLevel, Uint ValidateTextureRegion(TexDesc, MipLevel, Slice, DstBox); #ifdef DEVELOPMENT - VERIFY_TEX_PARAMS( TexDesc.Usage == USAGE_DEFAULT, "Only textures created with USAGE_DEFAULT can be updated with UpdateData()" ); VERIFY_TEX_PARAMS( TexDesc.SampleCount == 1, "Only non-multisampled textures can be updated with UpdateData()" ); VERIFY_TEX_PARAMS( (SubresData.Stride & 0x03) == 0, "Texture data stride (", SubresData.Stride, ") must be at least 32-bit aligned" ); VERIFY_TEX_PARAMS( (SubresData.DepthStride & 0x03) == 0, "Texture data depth stride (", SubresData.DepthStride, ") must be at least 32-bit aligned" ); |
