Fixing texture id wrapper - bool cast was called when when wrapped value needed.