Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2009 06:34:54 +0200
From:      Oliver Lehmann <lehmann@ans-netz.de>
To:        John Hein <jhein@timing.com>
Cc:        x11@freebsd.org
Subject:   Re: Problem with OpenGL and ATI HD3850
Message-ID:  <20090430063454.969303d0.lehmann@ans-netz.de>
In-Reply-To: <18936.36210.823588.838523@gromit.timing.com>
References:  <20090429164113.f0b48048.lehmann@ans-netz.de> <20090429163843.GB370@slackbox.xs4all.nl> <18936.36210.823588.838523@gromit.timing.com>

next in thread | previous in thread | raw e-mail | index | archive | help
John Hein wrote:

> Try printing to stderr instead of stdout (or set stdio to be
> unbuffered with setvbuf(3)) - you may be getting farther than you
> think and are getting bitten by stdio buffering.
> 
> Also is this threaded?

Tested it:

    void GLSupport::initialiseExtensions(void)
    {
        // Set version string
        const GLubyte* pcVer = glGetString(GL_VERSION);
fprintf(stderr,"100\n");

        assert(pcVer && "Problems getting GL version string using glGetString");
fprintf(stderr,"101\n");
        String tmpStr = (const char*)pcVer;
fprintf(stderr,"102\n");
        LogManager::getSingleton().logMessage("GL_VERSION = " + tmpStr);
fprintf(stderr,"103\n");
        mVersion = tmpStr.substr(0, tmpStr.find(" "));
fprintf(stderr,"104\n");

olivleh1@kartoffel olivleh1> freeorion
unknown chip id 0x9515, can't guess.
100
101
main() caught exception(std::exception): basic_string::_S_construct NULL not valid

It looks like it is threaded but I'm not sure.

(gdb) file /usr/local/bin/freeorion
Reading symbols from /usr/local/bin/freeorion...done.
(gdb) run
Starting program: /usr/local/bin/freeorion 
[New LWP 100138]
[New Thread 0x8062020b0 (LWP 100138)]
unknown chip id 0x9515, can't guess.
100
101
main() caught exception(std::exception): basic_string::_S_construct NULL not valid

Program exited normally.
(gdb) 


How can I output whatever glGetString returns?

-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090430063454.969303d0.lehmann>