From owner-freebsd-x11@FreeBSD.ORG Wed Apr 29 17:25:25 2009 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D63C106567E for ; Wed, 29 Apr 2009 17:25:25 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (ns2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 46ACA8FC15 for ; Wed, 29 Apr 2009 17:25:25 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id n3THPITJ001278; Wed, 29 Apr 2009 11:25:22 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.3/8.14.3) with ESMTP id n3THP6sf067976; Wed, 29 Apr 2009 11:25:06 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.3/8.14.3/Submit) id n3THP6mR067973; Wed, 29 Apr 2009 11:25:06 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18936.36210.823588.838523@gromit.timing.com> Date: Wed, 29 Apr 2009 11:25:06 -0600 From: John Hein To: Roland Smith In-Reply-To: <20090429163843.GB370@slackbox.xs4all.nl> References: <20090429164113.f0b48048.lehmann@ans-netz.de> <20090429163843.GB370@slackbox.xs4all.nl> X-Mailer: VM 7.19 under Emacs 22.3.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: x11@freebsd.org, Oliver Lehmann Subject: Re: Problem with OpenGL and ATI HD3850 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 17:25:25 -0000 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?