3D engine that AI agents drive
JavaScript 3d3d-engineagentic-aiai-agentsblenderclaude-codegame-enginegaussian-splattinggltfjavascriptmcpmcp-servermodel-context-protocolpath-tracerpath-tracingpbrrenderingthreejs-alternativewebgl2webgpu
Give the backend the refusing context in the compact colour fallback test (#2179)
Nguyen Xuan An6029d02f3f65
diff --git a/tests/render-target-memory.test.js b/tests/render-target-memory.test.jsindex 18539ccf..075dbf26 100644--- a/tests/render-target-memory.test.js+++ b/tests/render-target-memory.test.js@@ -205,6 +205,8 @@ test('a device that refuses the compact framebuffer gets the RGBA16F targets bacif (name === 'checkFramebufferStatus') return () => { statusChecks += 1; return statusChecks <= 2 || renderer.compactColor === false ? target.FRAMEBUFFER_COMPLETE : 0; };return target[name];} });+ // The backend allocates the frame targets with its own context, so it gets the refusing one too.+ renderer.backend = new WebGL2GlazeBackend(renderer.context);renderer.allocateFrameTargets(64, 64);assert.equal(renderer.compactColor, false);assert.equal(renderer.colorFormat, 'RGBA16F');