From: guillermo p. t. <gui...@it...> - 2001-10-11 14:11:17
|
Hi everybody, I'm using the glX API (Motif GL widget and so on) and I'm in trouble since I have upgraded to RedHat 7.1 (Mesa-3.4-13 and XFree86-4.0.3-5. However, if I install also glxMesa-3.2-0.3 and run XFree 3.3.6 (making sure the program takes the glxMesa libraries) the problem does not appear... by testing I've discovered that changing whenever I find: glXSwapBuffers(XtDisplay(w),glXGetCurrentDrawable()); by glXSwapBuffers(XtDisplay(w),XtWindow(w)); now it works, instead of generating a glX error (bad drawable). I should debug the first case to see that I have been careful and glXMakeCurrent() has been called before this line at each of the cases... however, my question is: is glXSwapBuffers(XtDisplay(w),XtWindow(w)) correct? Note that the man page says: " void glXSwapBuffers( Display *dpy, GLXDrawable drawable ) " TIA!. |