egl: implement resizing of offscreen buffers

Buffers which aren't sized correctly are resized immediately but buffers which are in use
are resized before they are used the next time.

Signed-off-by: Simon Busch <morphis@gravedo.de>