Fernando D. Mato Mira (matomira++at++lig.di.epfl.ch)
Thu, 18 May 1995 19:58:15 +0200
I have an app that runs OK on the Indigos but doesn't work
at all on the Onyx (PFMP_APPCULLDRAW).
I've used cvd to setup a breakpoint in openGLXconnection (see below),
but this does not seem to be called before setupWorkProc.
So, pfInitPipe is not immediate in single-process mode?
Thanks in advance.
void SceneWindow::afterRealizeHook()
{
// This happens once after the widget
// is first realized.
Widget w = _draw_area;
Display * display = XtDisplay(w);
Window xWindow = XtWindow(w);
// Place info in shared memory so draw
// process can attach to GLXwidget.
ViewState->glx_info.display_name = 0;
if (!pipe_inited) {
// Release exclusive hold on GLXwidget.
GLXunlink(display, xWindow);
}
// Performer will now call
// openGLXconnection in the draw
// process.
pfPipe *pipe = pfGetPipe(0);
if (!pipe_inited) {
pfInitPipe(pipe, openGLXconnection);
pipe_inited = TRUE;
}
openGLXwindow(display, xWindow);
setupWorkProc();
}
void
openGLXconnection(pfPipe* pipe)
{
ViewState->display =
XOpenDisplay(ViewState->glx_info.display_name);
}
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:30 PDT