From 3490dcaba4cb8e211996868036bff4fcb7a86782 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 25 Feb 2009 15:46:09 -0500 Subject: [PATCH] Fix x/y confusion for GL_TEXTURE_RECTANGLE_ARB When "denormalizing" for texture rectangles, multiple X coordinates by the X size and Y coordinates by the Y size. http://bugzilla.openedhand.com/show_bug.cgi?id=1479 --- gl/cogl-texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl/cogl-texture.c b/gl/cogl-texture.c index a45cede8b..0d5358cae 100644 --- a/gl/cogl-texture.c +++ b/gl/cogl-texture.c @@ -2567,8 +2567,8 @@ _cogl_multitexture_unsliced_quad (float x_1, if (tex->gl_target == GL_TEXTURE_RECTANGLE_ARB) { out_tex_coords[0] *= x_span->size; - out_tex_coords[1] *= x_span->size; - out_tex_coords[2] *= y_span->size; + out_tex_coords[1] *= y_span->size; + out_tex_coords[2] *= x_span->size; out_tex_coords[3] *= y_span->size; } }