From 34bed4357d79c804edaa8f67715dd57e1696fa73 Mon Sep 17 00:00:00 2001 From: Neils Wagenaar Date: Thu, 7 Oct 2004 10:18:49 +0000 Subject: [PATCH] Small change with the OpenGL/Texture initialisation --- src/sdlemu_opengl.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ) -- 2.37.2