Blit multisample GLSurfaceView to MediaCodec input surface in Android

I'm trying to blit multisample GLSurfaceView to MediaCodec-provided input surface. Unfortunately, the target surface remains black. When I remove multisampling everything works fine. The multisampling setup is done using a subclass of GLSurfaceView.ConfigChooser. The blit is performed using the following code: