Fixed a bug where the wrong mipMapLevel was used in
clipgetRegionOfDefinition.
Also comment and explain the thread-storage usage in the
ScopedRenderArgs class