scenes/opengl: Stop pushing map shader in SceneOpenGL constructor
KWin can work just fine even without an initially pushed MapTexture shader. This simplifies the initialization of the SceneOpenGL.
This commit is contained in:
parent
350144cde6
commit
2fd93e329a
1 changed files with 0 additions and 12 deletions
|
@ -91,18 +91,6 @@ SceneOpenGL::SceneOpenGL(OpenGLBackend *backend, QObject *parent)
|
|||
return;
|
||||
}
|
||||
|
||||
const QSize &s = screens()->size();
|
||||
GLRenderTarget::setVirtualScreenSize(s);
|
||||
GLRenderTarget::setVirtualScreenGeometry(screens()->geometry());
|
||||
|
||||
// push one shader on the stack so that one is always bound
|
||||
ShaderManager::instance()->pushShader(ShaderTrait::MapTexture);
|
||||
if (checkGLError("Init")) {
|
||||
qCCritical(KWIN_OPENGL) << "OpenGL 2 compositing setup failed";
|
||||
init_ok = false;
|
||||
return; // error
|
||||
}
|
||||
|
||||
// It is not legal to not have a vertex array object bound in a core context
|
||||
if (!GLPlatform::instance()->isGLES() && hasGLExtension(QByteArrayLiteral("GL_ARB_vertex_array_object"))) {
|
||||
glGenVertexArrays(1, &vao);
|
||||
|
|
Loading…
Reference in a new issue