Skip to content

Commit

Permalink
undo change that didn't fix the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenist authored Dec 14, 2023
1 parent 6a07fd9 commit 5a432b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/drawing-engine/src/engine/Layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export class Layer {
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true)
gl.texImage2D(target, level, internalFormat, srcFormat, srcType, croppedSource)
} else {
gl.texImage2D(target, level, internalFormat, width, height, border, srcFormat, srcType, null)
const transparentPixels = new Uint8ClampedArray(width * height * 4)
gl.texImage2D(target, level, internalFormat, width, height, border, srcFormat, srcType, transparentPixels)
}
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR)
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)
Expand Down

0 comments on commit 5a432b0

Please sign in to comment.