xbmc/xbmc — pull request #1920 by mikrohard (2012-12-11 13:06:19+00:00)
Title: [LinuxRendererGLES] - Don't let RENDER_BYPASS clear out the whole screen

Currently RENDER_BYPASS clears out the whole screen which results in an ugly view when video isn't in fullscreen (e.g. pvr window in confluence).

This commit uses the glScissor function to clear out the video rect only.

Example before: https://dl.dropbox.com/u/8261657/bypass_before.png
Example after: https://dl.dropbox.com/u/8261657/bypass_after.png

Tested on linux (pivos buildroot) and android (amlplayer) with different resolutions.

These are my first lines of code in OpenGL... there can be very well a better solution for this. But I didn't see any problems (not with performance or anything else).