enable QskItem::PreferRasterForTextures as default setting.
using QSK_PREFER_FBO_PAINTING instead of QSK_PREFER_RASTER
This commit is contained in:
parent
4284cae4d4
commit
3f77b01737
@ -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() );
|
||||
|
@ -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();
|
||||
|
@ -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" ) )
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user