Page 1 of 1

thread ccglwindow error

Posted: Sat Mar 11, 2017 8:55 am
by Yeyan
Hello:

in the version 2.6, ccglwindow has macro THREADED_GL_WIDGET, it likes Threaded GL rendering, but when i run it, it errored at "setContext(glContext) " in "initialize()" like follow:
ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to objects owned by a different thread. Current thread c0a528. Receiver '' (of type 'CCGLWindow') was created in thread c76850"

how can i use the thread to render?

thank you!

Re: thread ccglwindow error

Posted: Sat Mar 11, 2017 2:45 pm
by daniel
Well, it was just for a test (I'm not sure it even worked) and I never had the time to finish it. Especially since I believe Qt changed a lots of things by then and its probably deprecated.

You should use the latest version of CC if possible (2.9) and also look at Qt's documentation regarding threaded rendering (especially with QOffscreenSurface - http://doc.qt.io/qt-5/qoffscreensurface.html)

Re: thread ccglwindow error

Posted: Mon Mar 13, 2017 2:57 am
by Yeyan
OK,thank you! I'll try it!