opengl/glrendertimequery: restore the previous OpenGL context after queries and destruction
A lot of code in KWin expects the scene context to be current, so if the render time query changes the context, that code can misbehave severely.
(cherry picked from commit 23c7f5d4)
Co-authored-by: Xaver Hugl xaver.hugl@gmail.com