Re: [PyOpenGL-Users] GL_VENDOR
Brought to you by:
mcfletch
From: Mads I. <mp...@co...> - 2009-09-24 19:37:16
|
René Dudfield wrote: > On Thu, Sep 24, 2009 at 7:48 AM, Mads Ipsen <mp...@co...> wrote: > >> How come glGetString(GL_VENDOR) returns None if I don't have an OpenGL >> context? >> >> My innocent purpose of querying the vendor string is to display some >> driver info in an 'about box'. Normally I get the context by launching a >> QGLWidget from Qt, but it would be really silly to do this for the >> purpose of displaying an about box. >> >> All tricks and suggestions are most welcome, >> >> Mads >> >> > Hi, > > That can crash on some machines too without a connection. It's for > querying the GL connection, so you need a connection to use it. > > Reading from the glxinfo program might be another idea to try... if > it's there on the platform. > > cheers, > > OK, so how do I in the simplest possible manner set up an OpenGL context so I can query the vendor string, i.e. without opening any redundant windows? Calling glxinfo (or any other external program) is not an option, since we do cross platform development. Mads -- +------------------------------------------------------------+ | Mads Ipsen, Scientific developer | +------------------------------+-----------------------------+ | QuantumWise A/S | phone: +45-29716388 | | Nørresøgade 27A | www: www.quantumwise.com | | DK-1370 Copenhagen, Denmark | email: mp...@qu... | +------------------------------+-----------------------------+ |