mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
cogl-atlas-texture: Fix a cut and paste error when getting the height
There was a typo in getting the height of the full texture to check whether the sub region fits so that it was using the width instead. This was causing crashes when debugging is enabled for some apps.
This commit is contained in:
parent
264f0f0f05
commit
45215cb426
@ -250,7 +250,7 @@ _cogl_sub_texture_new (CoglHandle full_texture,
|
||||
guint full_width, full_height;
|
||||
|
||||
full_width = cogl_texture_get_width (full_texture);
|
||||
full_height = cogl_texture_get_width (full_texture);
|
||||
full_height = cogl_texture_get_height (full_texture);
|
||||
|
||||
/* The region must specify a non-zero subset of the full texture */
|
||||
g_return_val_if_fail (sub_x >= 0 && sub_y >= 0, COGL_INVALID_HANDLE);
|
||||
|
Loading…
Reference in New Issue
Block a user