Fix creating textures when running in headless/null mode

This commit is contained in:
Wojtek Figat
2026-03-07 00:32:26 +01:00
parent 82a02698df
commit 72bd624384
2 changed files with 8 additions and 3 deletions

View File

@@ -121,6 +121,8 @@ bool StreamingTexture::Create(const TextureHeader& header)
}
// Request resource streaming
if (GPUDevice::Instance && GPUDevice::Instance->GetRendererType() == RendererType::Null)
return false;
#if GPU_ENABLE_TEXTURES_STREAMING
bool isDynamic = !_header.NeverStream;
#else