engine/glwrap: Code cleanup