Fixes GL warnings in GbmSurface::makeContextCurrent() when using screencasting. (cherry picked from commit d8da7a4e)