fix for DECIDE_TEXTURE_TARGET

DECIDE_TEXTURE_TARGET hack wasn't correctly handling the
BufferRejecter that was added in JB. On rare occasions this
resulted in graphical corruption when wrong texture target
was called from BufferRejecter. Move DECIDE_TEXTURE_TARGET
switch before the rejecter to take care of this.

Change-Id: I82d604ff2f89f77d2736c2a5c0ba01e2eab2b308