Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

glPopAttrib and glPushAttrib on GLES for rendering fbo to a qquickitem

$
0
0
Hi guys, I’ve extended QQuickitem to create an area where I can call open gl calls directly. Only problem is on GLES/ANGLE platforms I cant push and pop like so This is the preprocess in my QSGSimpleTextureNode extended class void ColorNode::preprocess() {     if(m_fbo == NULL) return; //will happen a few times       QOpenGLContext::currentContext()->functions()->glUseProgram(0);     glPopAttrib();     m_fbo->bind();        //CCDirector::sharedDirector()->mainLoop();    opengl calls here       glPushAttrib(GL_ALL_ATTRIB_BITS);     m_fbo->release();   m_fbo->toImage().save("name.png","png");     } Any ideas?

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>