scenes/opengl: Remove NPOT extension check
NPOT textures are in core spec in OpenGL 2.0+.
This commit is contained in:
parent
258b8b9bce
commit
7580d6c6e0
1 changed files with 0 additions and 9 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue