The core is riddled with commented out, or unused OpenGL calls from Torque2D. They should all be removed except in cases where they may help to explain how a bit of code worked that hasn't been reimplemented. Example: some of the dglDraw calls have simply been commented out, they should all be replaced with nanoVG calls.