diff --git a/examples/iotdashboard/main.cpp b/examples/iotdashboard/main.cpp index 587f7ae5..f0b2c681 100644 --- a/examples/iotdashboard/main.cpp +++ b/examples/iotdashboard/main.cpp @@ -28,7 +28,6 @@ int main( int argc, char* argv[] ) QGuiApplication app( argc, argv ); - QskSetup::setUpdateFlag( QskItem::PreferRasterForTextures, true ); qskSkinManager->setSkin( new Skin() ); Qsk::addGraphicProvider( QString(), new GraphicProvider() ); diff --git a/examples/mycontrols/main.cpp b/examples/mycontrols/main.cpp index 5d961a88..ec9923c7 100644 --- a/examples/mycontrols/main.cpp +++ b/examples/mycontrols/main.cpp @@ -139,8 +139,6 @@ int main( int argc, char* argv[] ) qskSkinManager->registerFactory( QStringLiteral( "MySkinFactory" ), new MySkinFactory() ); - QskSetup::setUpdateFlag( QskItem::PreferRasterForTextures, true ); - Window window; window.resize( 480, 360 ); window.show(); diff --git a/src/controls/QskSetup.cpp b/src/controls/QskSetup.cpp index fae8d9e1..e0ffb30e 100644 --- a/src/controls/QskSetup.cpp +++ b/src/controls/QskSetup.cpp @@ -26,7 +26,7 @@ namespace { QskItem::UpdateFlags flags; - if ( hasEnvironment( "QSK_PREFER_RASTER" ) ) + if ( !hasEnvironment( "QSK_PREFER_FBO_PAINTING" ) ) flags |= QskItem::PreferRasterForTextures; if ( hasEnvironment( "QSK_FORCE_BACKGROUND" ) ) diff --git a/src/nodes/QskTextureRenderer.cpp b/src/nodes/QskTextureRenderer.cpp index cade0829..83796f7f 100644 --- a/src/nodes/QskTextureRenderer.cpp +++ b/src/nodes/QskTextureRenderer.cpp @@ -122,7 +122,7 @@ quint32 QskTextureRenderer::createPaintedTextureGL( Binding GL_ARRAY_BUFFER/GL_ELEMENT_ARRAY_BUFFER to 0 seems to be enough. However - as we do not know what is finally painted and what the - OpenGL paint engine is doing with better reinitialize everything. + OpenGL paint engine is doing we better reinitialize everything. Hope this has no side effects as the context will leave the function in a modified state. Otherwise we could try to change the buffers