set texture wrap to clamp
This commit is contained in:
parent
0a42df9a00
commit
ec6a720b24
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue