set texture wrap to clamp

This commit is contained in:
ohsqueezy 2023-11-30 00:34:54 -05:00
parent 0a42df9a00
commit ec6a720b24
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ void Texture::generate(glm::vec2 size, GLenum format, GLint filter)
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter);
/* Set the texture wrap of this texture */
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
sb::Log::gl_errors();
/* Store a copy of size */