Hello forum,

I am trying to draw a teapot as opengl underlay rendering and qt quick UI on top of the underlay to interact with the teapot. Since qt quick 2 uses opengl 2 for all of its rendering , i am using the compatibility profile with the modern opengl pipeline .

I am having QQuickView subclass as follows:

Qt Code:
  1. class Window : public QQuickView
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6.  
  7. explicit Window(QWindow *parent = 0);
  8.  
  9. public slots:
  10. void renderOpenGLScene();
  11.  
  12. private:
  13.  
  14. QScopedPointer<AbstractScene> mScene;
  15. QTime mTime;
  16. };
To copy to clipboard, switch view to plain text mode 

All the opengl commands are initiated in the following class :

Qt Code:
  1. class TeapotTessellation : public AbstractScene, protected QOpenGLFunctions_4_3_Compatibility
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6.  
  7. explicit TeapotTessellation(QObject *parent = 0);
  8. ~TeapotTessellation();
  9.  
  10. //scene related functions
  11. virtual void initialise();
  12. virtual void update(float t);
  13. virtual void render();
  14. virtual void resize(int w,int h);
  15.  
  16. private:
  17.  
  18. void loadShaders();
  19.  
  20. GLSLShader *mTessellationShader;
  21.  
  22. TeapotVboPatch *mTeapotPatch;
  23.  
  24. ....................
  25. ....................
  26. };
  27.  
  28. I can see the teapot, but the QML scene is not behaving properly(spring animation of a rounded rectangle) and i get the following info in the cosole:
  29.  
  30. [code]
  31. QSGContext::initialize: stencil buffer support missing, expect rendering errors
To copy to clipboard, switch view to plain text mode 

The qml code is tested separately and i works fine.

Where should i look into the debug this issue ?
[/code]