From: Stephen L. <le...@na...> - 2001-09-03 05:12:17
|
Let me make sure I understand this. glXCreateContext - creates but does not make current glXMakeCurrent - makes current now at this point should glXGetCurrentContext return non-NULL? or do I have to wait for something - what? or do I have to call it again - why? on my system (YellowDog 2.0) derived from RedHat 7 compiled for PowerPC running the example I posted, I get the message "glXGetCurrentContext returns NULL" twice (apparently the first time this is OK) but the second time this is surely wrong, ths context exists but GetCurrentCOntext still returns NULL, thx for patience, Stephen Lewis Brian Paul wrote: > > Stephen Lewis wrote: > > > > Thanks for info, I was not aware exactly when the context became > > current but if you will notice I checked the context twice *after* the > > MakeCurrent call as well - it fails *both* times on my system > > I only see one glXGetCurrentContext() call after glXMakeCurrent() in > your test program. > > > (YDL 2.0) surely that cannot be correct (?) > > I don't have a 4.0.2 installation to test on but with the XFree86/DRI > tree that I have (DRI mesa-3-5-branch) the program behaves as I'd expect. > > I had heard about problems with glXGetCurrentContext() a while back > on RedHat systems which were using a specially modified libGL library. > But I don't know any details about that. Well it looks like that may be what got into YDL 2.0 > > I'd recommend trying XFree86 4.1.0. OK thx > > > Stephen Lewis > > btw where is that documented? Is there a more appropriate call to find > > if a context is already valid for rendering? > > The GLX API functions are documented in the GLX specification which > can be found at www.opengl.org. > > -Brian thanks again |