mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -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
ee3647f84d
commit
3490dcaba4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user