Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

docs(render): the initialized_ check is what keeps a failed blit off the screen

yhh88e92c648212
diff --git a/src/esengine/renderer/frame/PostProcessPipeline.hpp b/src/esengine/renderer/frame/PostProcessPipeline.hpp
index a27ebfbef..5fdfe8a74 100644
--- a/src/esengine/renderer/frame/PostProcessPipeline.hpp
+++ b/src/esengine/renderer/frame/PostProcessPipeline.hpp
@@ -196,6 +196,9 @@ public:
* never resolved.
*/
bool isEngaged() const {
+ // `initialized_` leads, and that is load-bearing: init refuses when the
+ // blit shader will not compile, so a chain that cannot present degrades
+ // to drawing straight at the surface rather than to a black frame.
return initialized_ && ((!bypass_ && !passes_.empty()) || linear_output_
|| output_transform_ != OutputTransform::None
|| presentScales());