Merge branch 'Plasma/5.2'
This commit is contained in:
commit
32cea73843
2 changed files with 10 additions and 5 deletions
|
@ -197,7 +197,12 @@ void StartupFeedbackEffect::paintScreen(int mask, QRegion region, ScreenPaintDat
|
|||
}
|
||||
} else {
|
||||
useShader = true;
|
||||
ShaderManager::instance()->pushShader(ShaderManager::SimpleShader);
|
||||
auto s = ShaderManager::instance()->pushShader(ShaderTrait::MapTexture);
|
||||
QMatrix4x4 mvp;
|
||||
const QSize size = effects->virtualScreenSize();
|
||||
mvp.ortho(0, size.width(), size.height(), 0, 0, 65535);
|
||||
mvp.translate(m_currentGeometry.x(), m_currentGeometry.y());
|
||||
s->setUniform(GLShader::ModelViewProjectionMatrix, mvp);
|
||||
}
|
||||
texture->render(m_currentGeometry, m_currentGeometry);
|
||||
if (useShader) {
|
||||
|
|
8
main.cpp
8
main.cpp
|
@ -312,10 +312,10 @@ void Application::registerDBusService()
|
|||
|
||||
void Application::setupTranslator()
|
||||
{
|
||||
QTranslator qtTranslator;
|
||||
qtTranslator.load("qt_" + QLocale::system().name(),
|
||||
QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
||||
installTranslator(&qtTranslator);
|
||||
QTranslator *qtTranslator = new QTranslator(qApp);
|
||||
qtTranslator->load("qt_" + QLocale::system().name(),
|
||||
QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
||||
installTranslator(qtTranslator);
|
||||
}
|
||||
|
||||
void Application::setupMalloc()
|
||||
|
|
Loading…
Reference in a new issue