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:
Neil Roberts 2010-02-05 17:03:04 +00:00
parent 264f0f0f05
commit 45215cb426

View File

@ -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);