Restored stencil and buffer creation in the native code. Better check this twice.