summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/TextureBase.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/include/TextureBase.h b/Graphics/GraphicsEngine/include/TextureBase.h
index 39f98b5c..81f57da1 100644
--- a/Graphics/GraphicsEngine/include/TextureBase.h
+++ b/Graphics/GraphicsEngine/include/TextureBase.h
@@ -383,6 +383,11 @@ void TextureBase<BaseInterface, TRenderDeviceImpl, TTextureViewImpl, TTexViewObj
UNEXPECTED("Unexpected texture dimension");
}
+ if (GetTextureFormatAttribs(ViewDesc.Format).IsTypeless)
+ {
+ TEX_VIEW_VALIDATION_ERROR( "Texture view format (", GetTextureFormatAttribs(ViewDesc.Format).Name, ") cannot be typeless" );
+ }
+
#undef TEX_VIEW_VALIDATION_ERROR
if( ViewDesc.NumMipLevels == 0 )