cogl-sub-texture: Fix the height of sub textures
The code which is used to get the texture height was accidentally using the width due to a cut-and-paste fail.
This commit is contained in:
parent
97f8eed119
commit
6c3e1989e4
@ -370,10 +370,10 @@ static void
|
||||
_cogl_sub_texture_get_y_pixel_pos (CoglSubTexture *sub_tex,
|
||||
gint *py1, gint *py2)
|
||||
{
|
||||
gint full_width = cogl_texture_get_width (sub_tex->full_texture);
|
||||
gint full_height = cogl_texture_get_height (sub_tex->full_texture);
|
||||
|
||||
*py1 = full_width * sub_tex->ty1;
|
||||
*py2 = full_width * sub_tex->ty2;
|
||||
*py1 = full_height * sub_tex->ty1;
|
||||
*py2 = full_height * sub_tex->ty2;
|
||||
|
||||
if (*py1 > *py2)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user