On Jan 16, 09 10:56:40 -0800, Ian Romanick wrote:
> I'm guessing this is a bug in freeglut.  For whatever reason, they've
> started using glXMakeContextCurrent instead of glXMakeCurrent, but they
> don't really understand the differences between the two.  This looks
> like they're passing a Window to glXMakeContextCurrent as the drawable.
> While this is valid for glXMakeCurrent, it is *not* valid for
> glXMakeContextCurrent.  glXMakeContextCurrent must be passed a GLXWindow
> created by glXCreateWindow.  Looking at the code in FetchDRIDrawable,
> that would explain why it returns NULL.

Sounds very reasonable.

> That said, MakeContextCurrent should detect that FetchDRIDrawable has
> returned NULL.  In that case, it should toss an error instead of calling
> into the DRI driver.  I'll try to get a suitable patch out shortly.

That would be the next thing I would suggest ;)

Thanks so much!

Matthias

-- 
Matthias Hopf <[email protected]>      __        __   __
Maxfeldstr. 5 / 90409 Nuernberg   (_   | |  (_   |__          [email protected]
Phone +49-911-74053-715           __)  |_|  __)  |__  R & D   www.mshopf.de

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to