Fix crash when streaming texture with unsupported format by the GPU driver
This commit is contained in:
@@ -497,6 +497,8 @@ bool GPUTexture::Init(const GPUTextureDescription& desc)
|
||||
if (OnInit())
|
||||
{
|
||||
ReleaseGPU();
|
||||
_desc.Clear();
|
||||
_residentMipLevels = 0;
|
||||
LOG(Warning, "Cannot initialize texture. Description: {0}", desc.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user