enable QskItem::PreferRasterForTextures as default setting.

using QSK_PREFER_FBO_PAINTING instead of QSK_PREFER_RASTER
This commit is contained in:
Uwe Rathmann 2024-04-09 08:28:29 +02:00
parent 4284cae4d4
commit 3f77b01737
4 changed files with 2 additions and 5 deletions

View File

@ -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() );

View File

@ -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();

View File

@ -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" ) )

View File

@ -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