fixing bug in texture rendering (incorrectly activating texture unit)