QTMovieView and glView crash

  • Hi,
    I can quite load a QT movie on a QTMovieView with setMovie: and play it.
    This works well unless I simultaneously refresh an openGL view at 60 FPS.
    The 2 views are on 2 different windows of my Cocoa application, built on
    10.4 SDK.

    So if I don't call the [glView drawRect:rect]; the QT movie plays properly
    in the QTMovieView. If I call the [glView drawRect:rect]; the QT movie looks
    black and if I try to play it, my machine freezes. I have to reboot.

    In the drawRect method I do stuffs like
        glClear(mClearMask);
        [[NSOpenGLContext currentContext] flushBuffer];

    Could this flushBuffer conflict with the QTMovieView methods?
    Any idea?

    Best Regards
    --
    Lorenzo
    email: <archidea...>