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
This commit is contained in:
Owen W. Taylor 2009-02-25 15:46:09 -05:00 committed by Neil Roberts
parent ee3647f84d
commit 3490dcaba4

View File

@ -2567,8 +2567,8 @@ _cogl_multitexture_unsliced_quad (float x_1,
if (tex->gl_target == GL_TEXTURE_RECTANGLE_ARB) if (tex->gl_target == GL_TEXTURE_RECTANGLE_ARB)
{ {
out_tex_coords[0] *= x_span->size; out_tex_coords[0] *= x_span->size;
out_tex_coords[1] *= x_span->size; out_tex_coords[1] *= y_span->size;
out_tex_coords[2] *= y_span->size; out_tex_coords[2] *= x_span->size;
out_tex_coords[3] *= y_span->size; out_tex_coords[3] *= y_span->size;
} }
} }