eagl: fix handling of surface dimension changes
authorThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 15 May 2013 14:49:22 +0000 (11:49 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Thu, 16 May 2013 18:16:30 +0000 (15:16 -0300)
commitef66e39d0384576b06eff506dcc9f61e9e6a49fe
tree1123d6916198041d6610d2392739f59d436fa7ba
parent27d726fbfa390127290ba4758da1738b2ae2ed52
eagl: fix handling of surface dimension changes

Detect when the eagl surface changed its dimension (when the user rotates
the device for example) and adapt the egl internals to draw to that,
preventing that ios resizes the image again when drawing.

This is particularly harmful when eagl would scale down a image
to draw and the ios screen would scale it back up because the
surface is now bigger than when the element was configured.
ext/eglgles/gstegladaptation_eagl.m
ext/eglgles/gsteglglessink.c