Date: Thu, 30 Apr 2009 07:56:03 -0600 From: John Hein <jhein@timing.com> To: "Oliver Lehmann" <oliver@FreeBSD.org> Cc: Tom Evans <tevans.uk@googlemail.com>, x11@FreeBSD.org Subject: Re: Problem with OpenGL and ATI HD3850 Message-ID: <18937.44531.88172.177326@gromit.timing.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18937.44531.88172.177326>
