From 3bf050d5aa4976dc26bbdd8162cfea9adcc81631 Mon Sep 17 00:00:00 2001 From: Themaister Date: Wed, 18 May 2011 20:38:04 +0200 Subject: [PATCH] Use MultiTexCoord1 for image coords. --- gfx/gl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gfx/gl.c b/gfx/gl.c index 7038d392ec..7c36c63039 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1009,6 +1009,12 @@ static void* gl_init(const video_info_t *video, const input_driver_t **input, vo memcpy(gl->tex_coords, tex_coords, sizeof(tex_coords)); glTexCoordPointer(2, GL_FLOAT, 2 * sizeof(GLfloat), gl->tex_coords); + // For texture images. + glClientActiveTexture(GL_TEXTURE1); + glEnableClientState(GL_TEXTURE_COORD_ARRAY); + glTexCoordPointer(2, GL_FLOAT, 2 * sizeof(GLfloat), tex_coords); + glClientActiveTexture(GL_TEXTURE0); + gl->tex_w = 256 * video->input_scale; gl->tex_h = 256 * video->input_scale;