Skip to content

Commit

Permalink
remove webgl gl_CLAMP_TO_EDGE
Browse files Browse the repository at this point in the history
not necessary, default is to repeat and that is fine
  • Loading branch information
KilledByAPixel committed Aug 5, 2024
1 parent 0aae9d5 commit aaba794
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/engineWebGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,6 @@ function glCreateTexture(image)
const filter = canvasPixelated ? gl_NEAREST : gl_LINEAR;
glContext.texParameteri(gl_TEXTURE_2D, gl_TEXTURE_MIN_FILTER, filter);
glContext.texParameteri(gl_TEXTURE_2D, gl_TEXTURE_MAG_FILTER, filter);
glContext.texParameteri(gl_TEXTURE_2D, gl_TEXTURE_WRAP_S, gl_CLAMP_TO_EDGE);
glContext.texParameteri(gl_TEXTURE_2D, gl_TEXTURE_WRAP_T, gl_CLAMP_TO_EDGE);

return texture;
}
Expand Down Expand Up @@ -380,10 +378,7 @@ gl_NEAREST = 9728,
gl_LINEAR = 9729,
gl_TEXTURE_MAG_FILTER = 10240,
gl_TEXTURE_MIN_FILTER = 10241,
gl_TEXTURE_WRAP_S = 10242,
gl_TEXTURE_WRAP_T = 10243,
gl_COLOR_BUFFER_BIT = 16384,
gl_CLAMP_TO_EDGE = 33071,
gl_TEXTURE0 = 33984,
gl_ARRAY_BUFFER = 34962,
gl_STATIC_DRAW = 35044,
Expand Down

0 comments on commit aaba794

Please sign in to comment.