Re: [osg-users] [build] Why Restoring OpenGL currentState is not working with OpenGLES2 but working with GLES1

2012-11-16 Thread Koduri Lakshmi
Hi, The error is not with the previous post code. When I added the following code then the model is displayed. Code: mtForMarker[idx]=new osg::MatrixTransform(); osg::Shader * vshader = new osg::Shader(osg::Shader::VERTEX, gVertexShader ); osg::Shader *

[osg-users] [build] Why Restoring OpenGL currentState is not working with OpenGLES2 but working with GLES1

2012-11-10 Thread Koduri Lakshmi
Hi, I am using a 3rd party lib(QCAR) with OSG on Android. This lib clears OpenGLES graphics context every time after rendering a frame. So the model renders only once (first time) and disappears on the viewer. So to preserve graphics context i did as follows ---> Created Embeded View ---> Ca