diff --git a/source/Irrlicht/COGLESDriver.cpp b/source/Irrlicht/COGLESDriver.cpp index a21201f5..ca90e6fe 100644 --- a/source/Irrlicht/COGLESDriver.cpp +++ b/source/Irrlicht/COGLESDriver.cpp @@ -218,6 +218,7 @@ bool COGLES1Driver::genericDriverInit(const core::dimension2d& screenSize, EglDisplay, #endif stencilBuffer); + Stencilbuffer=stencilBuffer; glPixelStorei(GL_PACK_ALIGNMENT, 1);