fixes GL / GLES specific rendering of wireframes

GLES2 does not have a glPolygonmode, but we want to use it with GL3+, so we #ifdef

Signed-off-by: tgfrerer <tim@poniesandlight.co.uk>