Good write up here
Also, u can hack the gl context like this (maybe this can help u in the short run):