Skip to content

Commit

Permalink
Fix conformance/rendering/blending for WebGL 1.0
Browse files Browse the repository at this point in the history
This test needs to pass `undefined` on WebGL 1.0
contexts to avoid invalid texImage2D usage.
  • Loading branch information
lexaknyazev committed Jul 22, 2024
1 parent 8a1bf56 commit 3f09318
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/tests/conformance/rendering/blending.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@
debug('Blending for RGBA8:');

const gl = CreateContext();
fb = CreateValidFb(gl, [[gl.RGBA8, gl.RGBA, gl.UNSIGNED_BYTE]]);
// Do not use RGBA8 enum on WebGL 1.0
fb = CreateValidFb(gl, [[gl.texImage3D ? gl.RGBA8 : undefined, gl.RGBA, gl.UNSIGNED_BYTE]]);
shouldBeNonNull('fb');

// Regardless of the context version and enabled extensions,
Expand Down

0 comments on commit 3f09318

Please sign in to comment.