Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
KilledByAPixel committed Nov 19, 2024
1 parent ead81e4 commit 5b7ab12
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions dist/littlejs.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -5032,6 +5032,12 @@ function glCreateTexture(image)
glContext.bindTexture(gl_TEXTURE_2D, texture);
if (image && image.width)
glContext.texImage2D(gl_TEXTURE_2D, 0, gl_RGBA, gl_RGBA, gl_UNSIGNED_BYTE, image);
else
{
// create a white texture
const whitePixel = new Uint8Array([255, 255, 255, 255]);
glContext.texImage2D(gl_TEXTURE_2D, 0, gl_RGBA, 1, 1, 0, gl_RGBA, gl_UNSIGNED_BYTE, whitePixel);
}

// use point filtering for pixelated rendering
const filter = canvasPixelated ? gl_NEAREST : gl_LINEAR;
Expand Down
2 changes: 1 addition & 1 deletion dist/littlejs.esm.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/littlejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5032,6 +5032,12 @@ function glCreateTexture(image)
glContext.bindTexture(gl_TEXTURE_2D, texture);
if (image && image.width)
glContext.texImage2D(gl_TEXTURE_2D, 0, gl_RGBA, gl_RGBA, gl_UNSIGNED_BYTE, image);
else
{
// create a white texture
const whitePixel = new Uint8Array([255, 255, 255, 255]);
glContext.texImage2D(gl_TEXTURE_2D, 0, gl_RGBA, 1, 1, 0, gl_RGBA, gl_UNSIGNED_BYTE, whitePixel);
}

// use point filtering for pixelated rendering
const filter = canvasPixelated ? gl_NEAREST : gl_LINEAR;
Expand Down
2 changes: 1 addition & 1 deletion dist/littlejs.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/littlejs.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -4600,6 +4600,12 @@ function glCreateTexture(image)
glContext.bindTexture(gl_TEXTURE_2D, texture);
if (image && image.width)
glContext.texImage2D(gl_TEXTURE_2D, 0, gl_RGBA, gl_RGBA, gl_UNSIGNED_BYTE, image);
else
{
// create a white texture
const whitePixel = new Uint8Array([255, 255, 255, 255]);
glContext.texImage2D(gl_TEXTURE_2D, 0, gl_RGBA, 1, 1, 0, gl_RGBA, gl_UNSIGNED_BYTE, whitePixel);
}

// use point filtering for pixelated rendering
const filter = canvasPixelated ? gl_NEAREST : gl_LINEAR;
Expand Down

0 comments on commit 5b7ab12

Please sign in to comment.