[SOLVED] QOpenGLFramebufferObject y inverted.



  • Hi Guys

    I have a QOpenGLFramebufferObject that is y inverted.
    How do i flip it the right way around

    It's for a QSGSimpleTextureNode

    Maybe I change something here?

    QSGGeometry::updateTexturedRectGeometry(&m_geometry,
    QRectF(0, 0, m_size.width(), m_size.height()),
    QRectF(0, 0, 1, 1));

    It's easy for QQuickPaintedItem but not so much for the native rendering method.

    Many Thanks

    Martell



  • I set the scale in qml to -1 and that flipped it but that flips the x value as well :/



  • I've solved this one guys I just changed the rect above to 1 and -1.
    Just like in qquickitem.cpp painted items

    :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.