Resize fix v2
(deleted) requested to merge resize-fix-v2 into master
This should fix all crashes and GPU page faults when resizing.
One last issue remains, when resizing glxgears repeatedly (hopefully more than any realistic use case), performance does drop and CPU usage increases. It would be still nice to fix this, but at least nothing crashes now.