From owner-freebsd-x11@FreeBSD.ORG Thu Apr 30 01:09:09 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C910B106566C for ; Thu, 30 Apr 2009 01:09:09 +0000 (UTC) (envelope-from npapke@acm.org) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 931378FC1C for ; Thu, 30 Apr 2009 01:09:09 +0000 (UTC) (envelope-from npapke@acm.org) Received: from pd2ml2so-ssvc.prod.shaw.ca ([10.0.141.134]) by pd3mo1so-svcs.prod.shaw.ca with ESMTP; 29 Apr 2009 19:09:09 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=0 a=chgtUavlhhQtbbtXZfYA:9 a=mFlpDTUFq-8bo9eu66XV_457T64A:4 a=nAPXUAfsBmEA:10 a=J0Jjo_8CuHkA:10 Received: from s010600121729c74c.vc.shawcable.net (HELO proven.lan) ([24.85.241.34]) by pd2ml2so-dmz.prod.shaw.ca with ESMTP; 29 Apr 2009 19:09:09 -0600 Received: from proven.lan (localhost [127.0.0.1]) by proven.lan (8.14.3/8.14.3) with ESMTP id n3U198kW009436; Wed, 29 Apr 2009 18:09:08 -0700 (PDT) (envelope-from npapke@acm.org) Received: from localhost (localhost [[UNIX: localhost]]) by proven.lan (8.14.3/8.14.3/Submit) id n3U198sw009435; Wed, 29 Apr 2009 18:09:08 -0700 (PDT) (envelope-from npapke@acm.org) X-Authentication-Warning: proven.lan: npapke set sender to npapke@acm.org using -f From: Norbert Papke Organization: Archaeological Filing To: freebsd-x11@freebsd.org Date: Wed, 29 Apr 2009 18:09:07 -0700 User-Agent: KMail/1.9.10 References: <20090429164113.f0b48048.lehmann@ans-netz.de> <20090429163843.GB370@slackbox.xs4all.nl> In-Reply-To: <20090429163843.GB370@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200904291809.08025.npapke@acm.org> Cc: 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: Thu, 30 Apr 2009 01:09:10 -0000 On April 29, 2009, Roland Smith wrote: > > =A0 =A0 =A0 =A0 assert(pcVer && "Problems getting GL version string usi= ng > > 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. You are correct. However. the most likely reason for including the string= =20 inside the assert() macro is for diagnostics. If pcVer were false, the mac= ro=20 would cause something like the following to be written to stderr: Assertion failed: pcVer && "Problems getting GL version string ussing=20 glGetString", ... Cheers, =20 =2D- Norbert Papke. npapke@acm.org