Bug corrected in render_context: was using #make_current directly instead of using #send.
Changed parameters in FramebufferContextARB#texture_layer.