From owner-freebsd-x11@FreeBSD.ORG Thu Apr 30 12:21:57 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 5917E106564A for ; Thu, 30 Apr 2009 12:21:57 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with SMTP id A302F8FC19 for ; Thu, 30 Apr 2009 12:21:56 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: (qmail 6644 invoked by uid 89); 30 Apr 2009 12:21:55 -0000 Message-ID: <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> In-Reply-To: <1241092672.3294.6.camel@localhost> From: "Oliver Lehmann" To: Tom Evans Date: Thu, 30 Apr 2009 14:21:55 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: 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 12:21:57 -0000 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.