Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2009 11:25:06 -0600
From:      John Hein <jhein@timing.com>
To:        Roland Smith <rsmith@xs4all.nl>
Cc:        x11@freebsd.org, Oliver Lehmann <lehmann@ans-netz.de>
Subject:   Re: Problem with OpenGL and ATI HD3850
Message-ID:  <18936.36210.823588.838523@gromit.timing.com>
In-Reply-To: <20090429163843.GB370@slackbox.xs4all.nl>
References:  <20090429164113.f0b48048.lehmann@ans-netz.de> <20090429163843.GB370@slackbox.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Roland Smith wrote at 18:38 +0200 on Apr 29, 2009:
 > On Wed, Apr 29, 2009 at 04:41:13PM +0200, Oliver Lehmann wrote:
 > > In Ogre3D, the failing code part is:
 > > 
 > >     void GLSupport::initialiseExtensions(void)
 > >     {
 > >         // Set version string
 > >         const GLubyte* pcVer = glGetString(GL_VERSION);
 > > printf("ogre 110\n");
 > >         assert(pcVer && "Problems getting GL version string using
 > > glGetString"); printf("ogre 110.1\n");
 > 
 > The assert is weird. Why take an AND of pcVer and a string? Since the
 > string is a constant non-null value, using the standard && operator is useless. 
 > Is the && operator overloaded by any chance? That could cause the trouble.

His printf says he gets past the assert, so an overloaded operator&&
shouldn't be an issue.

Try printing to stderr instead of stdout (or set stdio to be
unbuffered with setvbuf(3)) - you may be getting farther than you
think and are getting bitten by stdio buffering.

Also is this threaded?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18936.36210.823588.838523>