Permalink
Browse files

GL_CLAMP -> GL_REPEAT. useful for shader effects

  • Loading branch information...
1 parent ddbc8b5 commit ecb7889220f940d7163f168a43b1a7640adb6d2b @dividuum dividuum committed Mar 9, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −2 framebuffer.c
  2. +0 −2 image.c
View
@@ -59,8 +59,6 @@ void make_framebuffer(int width, int height, GLuint *tex, GLuint *fbo) {
glGenTextures(1, tex);
glBindTexture(GL_TEXTURE_2D, *tex);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, width, height, 0, GL_RGBA, GL_INT, NULL);
View
@@ -123,8 +123,6 @@ int image_load(lua_State *L, const char *path, const char *name) {
glGenTextures(1, &tex);
glBindTexture(GL_TEXTURE_2D, tex);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);

0 comments on commit ecb7889

Please sign in to comment.