Remove asserts in GPUBufferSubscriber

Fixes #21683
This commit is contained in:
Henrik Rydgård committed 2026-05-19 11:09:53 +02:00
1 parent 231aefe476
commit 8dad5a5c57
1 file changed
+4 -2
@@ -248,14 +248,16 @@ static void GenericStreamBuffer(DebuggerRequest &req, std::function<bool(const G
if (!func(buf, &isFramebuffer)) {
return req.Fail("Could not download output");
}
_assert_(buf != nullptr);
if (!buf) {
return req.Fail("No output available");
}
if (type == "base64") {
StreamBufferToBase64(req, *buf, isFramebuffer);
} else if (type == "uri") {
StreamBufferToDataURI(req, *buf, isFramebuffer, includeAlpha, stackWidth);
} else {
_assert_(false);
return req.Fail("Unexpected output type");
}
}