X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsdlemu_opengl.c;h=c6cddd365b2d76a5c6e0ef233512b50729c5fc12;hb=509522868260b666a38703bf768776a607380f10;hp=e43ece86cecefb285a2275ab2f13619d6245fbf5;hpb=680d3e7ca872f052f189e4ba0096dc3514a70413;p=virtualjaguar diff --git a/src/sdlemu_opengl.c b/src/sdlemu_opengl.c index e43ece8..c6cddd3 100644 --- a/src/sdlemu_opengl.c +++ b/src/sdlemu_opengl.c @@ -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 )