add error event to BaseTexture