From: Neils Wagenaar Date: Thu, 7 Oct 2004 10:18:49 +0000 (+0000) Subject: Small change with the OpenGL/Texture initialisation X-Git-Tag: 2.0.0~127 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34bed4357d79c804edaa8f67715dd57e1696fa73;hp=5c7ebfffd313f310523814a75da912b878b216e8;p=virtualjaguar Small change with the OpenGL/Texture initialisation --- 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 )