Skip to content

Commit 096b1dc

Browse files
authored
default clamp to edge instead of repeat when creating image textures (#2186)
1 parent cc6b83f commit 096b1dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pxScene2d/src/pxContextGL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,8 @@ class pxTextureOffscreen : public pxTexture
888888
glBindTexture(GL_TEXTURE_2D, mTextureName); TRACK_TEX_CALLS();
889889
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, PX_TEXTURE_MIN_FILTER);
890890
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, PX_TEXTURE_MAG_FILTER);
891-
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
892-
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
891+
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
892+
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
893893

894894
glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
895895
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA,

0 commit comments

Comments
 (0)