Temporary fix for OpenGL <3.2