From 7580d6c6e07ee00cac681073dce6b05120dcc291 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 9 Nov 2021 22:33:11 +0200 Subject: [PATCH] scenes/opengl: Remove NPOT extension check NPOT textures are in core spec in OpenGL 2.0+. --- src/scenes/opengl/scene_opengl.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/scenes/opengl/scene_opengl.cpp b/src/scenes/opengl/scene_opengl.cpp index 07d0d4adfa..cb6c5dcc41 100644 --- a/src/scenes/opengl/scene_opengl.cpp +++ b/src/scenes/opengl/scene_opengl.cpp @@ -74,15 +74,6 @@ SceneOpenGL::SceneOpenGL(OpenGLBackend *backend, QObject *parent) : Scene(parent) , m_backend(backend) { - // perform Scene specific checks - GLPlatform *glPlatform = GLPlatform::instance(); - if (!glPlatform->isGLES() && !hasGLExtension(QByteArrayLiteral("GL_ARB_texture_non_power_of_two")) - && !hasGLExtension(QByteArrayLiteral("GL_ARB_texture_rectangle"))) { - qCCritical(KWIN_OPENGL) << "GL_ARB_texture_non_power_of_two and GL_ARB_texture_rectangle missing"; - init_ok = false; - return; // error - } - // We only support the OpenGL 2+ shader API, not GL_ARB_shader_objects if (!hasGLVersion(2, 0)) { qCDebug(KWIN_OPENGL) << "OpenGL 2.0 is not supported";