Skip to content

gl: Don't restore the viewport on function exit

Matthew Waters requested to merge ystreet/gst-plugins-base:gl-viewport into master

Doing so involves retrieving the current viewport from OpenGL which as with any glGet operation, is expensive.

This means that the various sinks need to reset the viewport on draw.

In the process, fix resizing on cocoa.

Merge request reports