[gles2n64] Kill off some unused variables.

Also extended some error messages to indicate what function has failed.