Skip to content

OpenGL: Fix content not updated when using OnDemand and switching textures

Paul Lemire requested to merge lemirep/qt3d:patch2 into kde/5.15

When changing a Parameter whose value is a texture, it takes Qt3D potentially two frames to process the scene fully before it is able to draw the updated content.

This patch makes it so that if we know we have the flags ParametersDirty for frame N, we request to reprocess the scene once more on frame N+1.

Change-Id: Ia635e324434f92f8423a68b72d99350d96830de6 Reviewed-by: Sean Harmer sean.harmer@kdab.com (cherry picked from commit 672da697) Reviewed-by: Qt Cherry-pick Bot cherrypick_bot@qt-project.org

Merge request reports