]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/sdlemu_opengl.c
Small change with the OpenGL/Texture initialisation
[virtualjaguar] / src / sdlemu_opengl.c
index e43ece86cecefb285a2275ab2f13619d6245fbf5..c6cddd365b2d76a5c6e0ef233512b50729c5fc12 100644 (file)
@@ -312,6 +312,11 @@ void sdlemu_create_texture(SDL_Surface * src, SDL_Surface * dst, int filter, int
           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
     }
+    
+    // Setting texture mode.
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
+
 
     // Genereate the texture using the above information.
     switch ( texturebpp )