Skip to content

Commit

Permalink
Qt6 incompatibility fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Dec 28, 2023
1 parent 1bc7cc3 commit b3b4ca6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nodes/QskSceneTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,12 @@ namespace

QSize Renderer::textureSize() const
{
return m_fbo ? m_fbo->size() : QSize();
#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
if ( m_fbo ) return m_fbo->size();
#else
if( m_rt.rt ) return m_rt.rt->pixelSize();
#endif
return QSize();
}

void Renderer::render()
Expand Down

0 comments on commit b3b4ca6

Please sign in to comment.