HI Bin, If glGetString(GL_VERSION) return NULL then is some fundamental problem with the set up of the graphics thread or associated threading not having a graphics context current. This is an error state, the variables that aren't initialized will all be invalid anyway.
Could you please explain what circumstances you are seeing prorblems as it's clearly not just a case of some uninitialized variables. Robert. On 22 March 2016 at 21:55, Bin Chen <[email protected]> wrote: > Actually, this line "isARBTimerQuerySupported = false;" fixes my problem, > but I think all the other variables will need to be initialised, if the > constructor returns at > if (!version) > { > // > return; > } > Their values are undefined which could cause crash. > > > > > > On Wed, Mar 23, 2016 at 7:42 AM, Bin Chen <[email protected]> wrote: >> >> Hi, Robert, >> >> It causes crash on my Mac OS and Android. See my git comparison screenshot >> for fix. >> >> Cheers. >> >> Bin > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
