We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ba7c07 commit 1e3e2faCopy full SHA for 1e3e2fa
Graphics/GraphicsEngine/include/TextureBase.hpp
@@ -183,6 +183,12 @@ class TextureBase : public DeviceObjectBase<typename EngineImplTraits::TextureIn
183
{
184
VERIFY(m_pDefaultViews == nullptr, "Default views have already been initialized");
185
186
+ if (this->m_Desc.Format == TEX_FORMAT_UNKNOWN)
187
+ {
188
+ // Happens when creating dummy OpenGL textures
189
+ return;
190
+ }
191
+
192
const Uint32 NumDefaultViews = GetNumDefaultViews();
193
if (NumDefaultViews == 0)
194
return;
0 commit comments