Skip to content

Commit

Permalink
incompatibility with Qt [6.0->6.3] fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Dec 22, 2023
1 parent 972f839 commit aaf029b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/nodes/QskSceneTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ namespace

#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
QOpenGLFramebufferObject* m_fbo;
#endif

#if QT_VERSION < QT_VERSION_CHECK( 6, 4, 0 )
struct RenderTarget
{
QRhiRenderTarget* rt = nullptr;
Expand Down Expand Up @@ -368,6 +370,12 @@ void QskSceneTexture::render( const QSGRootNode* rootNode,
d->renderer->renderScene();
}

bool QskSceneTexture::isDirty() const
{
Q_D( const QskSceneTexture );
return d->renderer ? d->renderer->isDirty() : true;
}

QRectF QskSceneTexture::normalizedTextureSubRect() const
{
return QRectF( 0, 1, 1, -1 );
Expand Down

0 comments on commit aaf029b

Please sign in to comment.