forked from qt-creator/qt-creator
fix incorrect GaussianBlur shader code generation
m_quickView in Qt5NodeInstanceServer::initializeView() is instantiated with setProfile(QSurfaceFormat::CoreProfile) However QGfxShaderBuilder::QGfxShaderBuilder() initiates and generate the gaussian blur shader code with referring default format. that doesn't set the profile to QSurfaceFormat::CoreProfile. The correct resolution is to get profile with accessing current window. But QGfxShaderBuilder is not QQuickItem so it doesn't have any way to access current window. As qmlscene does, it could be a nice solution to keep the current surface format as default when instantiating QQuickView. Fixes: QDS-1864 Change-Id: I0fcf80effccebf7cfe8e58c071cf121b6af5bdbd Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
b2ca79836b
commit
fee8848297
@@ -67,6 +67,8 @@ void Qt5NodeInstanceServer::initializeView()
|
||||
QSurfaceFormat surfaceFormat = m_quickView->requestedFormat();
|
||||
surfaceFormat.setVersion(4, 1);
|
||||
surfaceFormat.setProfile(QSurfaceFormat::CoreProfile);
|
||||
QSurfaceFormat::setDefaultFormat(surfaceFormat);
|
||||
|
||||
m_quickView->setFormat(surfaceFormat);
|
||||
|
||||
DesignerSupport::createOpenGLContext(m_quickView.data());
|
||||
|
Reference in New Issue
Block a user