mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 10:30:47 -05:00
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:
parent
ce83007c1d
commit
402e2e0d82
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user