Horde3D http://horde3d.org/forums/ |
|
"Broken" render state http://horde3d.org/forums/viewtopic.php?f=3&t=1695 |
Page 1 of 1 |
Author: | Christoph [ 31.07.2012, 20:49 ] |
Post subject: | "Broken" render state |
h3dInit() calls glActiveTexture(GL_TEXTURE15), so no calls to h3dRender() et.al were made at this point. This screws QtQuick's render state (text and images get broken)(QtQuick 2.0 is part Qt 5.0). "Manually" calling glActiveTexture(GL_TEXTURE0); after h3dInit() seems like a valid fix. Its not a big deal to figure all "wrong states" out with apitrace and glStringMarkerGREMEDY("Hello *.trace file", ...). I'm just not sure where to fix it - Horde3D or my application? Cheers, Christoph |
Author: | AlexL [ 31.07.2012, 22:44 ] |
Post subject: | Re: "Broken" render state |
Hi Christoph. I recommend to wrap calls to h3dInit and h3dRender/h3dFinalizeFrame with a pair of of glPushAttrib(GL_ALL_ATTRIB_BITS) and glPopAttrib. This ensures that your render states are kept. Also make sure you use latest SVN version, as FBO state is preserved as well (which is not captured by glPushAttrib). BTW: Here is another thread with a similar problem: http://horde3d.org/forums/viewtopic.php?f=1&t=988 Alex |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |