I test this code with the *.h and *.lib files in Pixie-win-2.2.6.zip.
RtContextHandle oldContext = RiGetContext();
RiContext( oldContext );
but the b.rib is not generated at all. It seems that the
nested RiBegin~RiEnd pair is not supported in Pixie2.2.6.
And could you tell me whether the code on the trunk support this now?
Pixie does not support nested RiBegin/RiEnd. According to the interface, this is invalid. However, you can use RiArchieve to create rib files.