Re: [Interest] QML and OpenGL conflicts

2015-06-08 Thread Marc Gilleron
In case we want to share our context with QtQuick, which one should we pick? Is there a main context Qt uses for its views (not only QtQuick because classic widgets use OpenGL too I guess)? Or do we have to share QtQuickView contextes as they are created? 2015-06-05 20:31 GMT+02:00 Marc Gilleron

Re: [Interest] QML and OpenGL conflicts

2015-06-05 Thread Marc Gilleron
Here is where we currently are: - Threading our OpenGL code would currently mean having a thread between our project and Qt-related code. - Wrapping OpenGL code in makeCurrent() is not done and is not planned by the team due to optimizations and refactoring that never has been necessary. I agree it

Re: [Interest] QML and OpenGL conflicts

2015-06-05 Thread Sean Harmer
On 04/06/2015 14:25, Marc Gilleron wrote: > I tried to set QSG_RENDER_LOOP to "threaded" but didn't noticed any > difference, our application still crashes. Then you need to isolate why it crashes and choose a method to fix it. Some options: * Put your custom rendering into another thread and i

Re: [Interest] QML and OpenGL conflicts

2015-06-04 Thread Marc Gilleron
Thursday, June 04, 2015 2:32 PM > > To: Koehne Kai > > Cc: interest@qt-project.org > > Subject: Re: [Interest] QML and OpenGL conflicts > > > > I'm not sure where to set it, do you mean QSG_RENDER_LOOP is really an > > environment variable like PATH on Windows?

Re: [Interest] QML and OpenGL conflicts

2015-06-04 Thread Koehne Kai
> -Original Message- > From: Marc Gilleron [mailto:marc.gille...@gmail.com] > Sent: Thursday, June 04, 2015 2:32 PM > To: Koehne Kai > Cc: interest@qt-project.org > Subject: Re: [Interest] QML and OpenGL conflicts > > I'm not sure where to set it, do you m

Re: [Interest] QML and OpenGL conflicts

2015-06-04 Thread Marc Gilleron
I'm not sure where to set it, do you mean QSG_RENDER_LOOP is really an environment variable like PATH on Windows? Oo As for QQUickFrameBufferObject... I'm not sure how it will work. Our application creates its own context and has nothing to do with Qt in the first place. Because of its nature, all

Re: [Interest] QML and OpenGL conflicts

2015-06-04 Thread Koehne Kai
> -Original Message- > From: interest-bounces+kai.koehne=theqtcompany@qt-project.org > [] > We investigated the problem and found that both renderings were > happening in the same thread, and Qt was stealing the OpenGL context we > setup in our application (with a makeCurrent() I gu

[Interest] QML and OpenGL conflicts

2015-06-04 Thread Marc Gilleron
Hello, I'm currently integrating an application using OpenGL in a Qt GUI where QML is mainly used. We may need one or even more OpenGL views rendered by our application. But as soon as something Qt is shown, the application's rendering glitches and sometimes crash, even if the Qt stuff is in a sep