Use last texture units for 3D textures

Change-Id: I987ffe32770b5973abc24dfb5302d8ef55f11686