Motif/Performer problem on Onyx

New Message Reply Date view Thread view Subject view Author view

Fernando D. Mato Mira (matomira++at++lig.di.epfl.ch)
Thu, 18 May 1995 19:58:15 +0200


Hello,

  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);
}


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:30 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.