~mterry/qtvideo-node/dont-install-tests

« back to all changes in this revision

Viewing changes to src/shadervideomaterial.h

Use static shader object, as Qt caches the pointer to it
Using QAbstractVideoSurface::stop() obsoletes the check for the CameraControl pointer on every frame.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
private:
47
47
    QVideoSurfaceFormat m_format;
48
48
    CameraControl *m_camControl;
49
 
    mutable ShaderVideoShader *m_videoShader;
 
49
    static ShaderVideoShader *m_videoShader; // the shader is cached in the Qt scene graph
50
50
    GLfloat m_textureMatrix[16];
51
51
    GLfloat m_flippedTextureMatrix[16];
52
52
};