From 982f0412045966e8070c79bd2387a6ab61b9690f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 28 Apr 2011 22:06:21 +0200 Subject: [PATCH] KWin requires Mesa 7.10 for OpenGL/GLX If OpenGL compositing is tried in GLX with a Mesa driver not at least 7.10 we stop OpenGL compositing. For OpenGL ES we just assume that all Mesa drivers are fine, so no requirement. --- scene_opengl_glx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene_opengl_glx.cpp b/scene_opengl_glx.cpp index cf8f7cc947..6adb0ba7bc 100644 --- a/scene_opengl_glx.cpp +++ b/scene_opengl_glx.cpp @@ -70,6 +70,10 @@ SceneOpenGL::SceneOpenGL(Workspace* ws) kError(1212) << "GL_ARB_texture_non_power_of_two and GL_ARB_texture_rectangle missing"; return; // error } + if (GLPlatform::instance()->isMesaDriver() && GLPlatform::instance()->mesaVersion() < kVersionNumber(7, 10)) { + kError(1212) << "KWin requires at least Mesa 7.10 for OpenGL compositing."; + return; + } if (db) glDrawBuffer(GL_BACK); // Check whether certain features are supported