Fix OpenGL3 support