Fix ugly bug that lead to a OpenGL call with no current context. Bug reported by larsa.
Fix ugly bug that lead to a OpenGL call with no current context. Bug reported by larsa.

Alexpux/SmallChange,Alexpux/SmallChange,Alexpux/SmallChange,Alexpux/SmallChange