Date: Thu, 30 Apr 2009 14:21:55 +0200 From: "Oliver Lehmann" <oliver@FreeBSD.org> To: Tom Evans <tevans.uk@googlemail.com> Cc: x11@freebsd.org Subject: Re: Problem with OpenGL and ATI HD3850 Message-ID: <20090430122155.6643.qmail@avocado.salatschuessel.net> In-Reply-To: <1241092672.3294.6.camel@localhost> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090430122155.6643.qmail>
