Scopedtexturebind es2 fix

Texture3d isn't supported on ES2 so that one needed to be ifdef'ed out.