mygui rendering works on gl and dx9 (still some small issues)