From owner-freebsd-x11@FreeBSD.ORG Thu Apr 30 13:56:09 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 32777106566C for ; Thu, 30 Apr 2009 13:56:09 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (smtp.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id D23C88FC1B for ; Thu, 30 Apr 2009 13:56:08 +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 n3UDu5ov066294; Thu, 30 Apr 2009 07:56:07 -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 n3UDu3kh025731; Thu, 30 Apr 2009 07:56:03 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.3/8.14.3/Submit) id n3UDu3YN025728; Thu, 30 Apr 2009 07:56:03 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18937.44531.88172.177326@gromit.timing.com> Date: Thu, 30 Apr 2009 07:56:03 -0600 From: John Hein To: "Oliver Lehmann" In-Reply-To: <20090430122155.6643.qmail@avocado.salatschuessel.net> References: <20090429164113.f0b48048.lehmann@ans-netz.de> <20090429163843.GB370@slackbox.xs4all.nl> <18936.36210.823588.838523@gromit.timing.com> <20090430063454.969303d0.lehmann@ans-netz.de> <1241092672.3294.6.camel@localhost> <20090430122155.6643.qmail@avocado.salatschuessel.net> 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: Tom Evans , x11@FreeBSD.org 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 13:56:09 -0000 Oliver Lehmann wrote at 14:21 +0200 on Apr 30, 2009: > Tom Evans writes: > > > > fprint(stderr, "%x %s\n", pcVer, pcVer); > > What I now did is (stolen from glxgears): > > // Set version string > const GLubyte* pcVer = glGetString(GL_VERSION); > fprintf(stderr,"100\n"); > printf("GL_RENDERER = %s\n", (char *) glGetString(GL_RENDERER)); > printf("GL_VERSION = %s\n", (char *) glGetString(GL_VERSION)); > printf("GL_VENDOR = %s\n", (char *) glGetString(GL_VENDOR)); > printf("GL_EXTENSIONS = %s\n", (char *) glGetString(GL_EXTENSIONS)); > assert(pcVer && "Problems getting GL version string using > glGetString"); > fprintf(stderr,"101\n"); > String tmpStr = (const char*)pcVer; > > Just to see what glGetString returns - independently what is in pcVer. > The output I'm getting is: > > olivleh1@kartoffel olivleh1> freeorion > unknown chip id 0x9515, can't guess. > 100 > GL_RENDERER = (null) > GL_VERSION = (null) > GL_VENDOR = (null) > GL_EXTENSIONS = (null) > 101 > main() caught exception(std::exception): basic_string::_S_construct NULL > not valid > olivleh1@kartoffel olivleh1> > > > Could it be, that there was no "GL context" created before? But than I > wonder about the output "unknown chip id...". And why the assert() is not > handling it. The assert is perhaps not handling it because it has been compiled out. Look for -DNDEBUG.