Set USE_CUSTOM_CONTEXT to 1 to use custom QGLContext