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.
This commit is contained in:
Martin Gräßlin 2011-04-28 22:06:21 +02:00
parent 676d180e4f
commit 982f041204

View file

@ -70,6 +70,10 @@ SceneOpenGL::SceneOpenGL(Workspace* ws)
kError(1212) << "GL_ARB_texture_non_power_of_two and GL_ARB_texture_rectangle missing"; kError(1212) << "GL_ARB_texture_non_power_of_two and GL_ARB_texture_rectangle missing";
return; // error 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) if (db)
glDrawBuffer(GL_BACK); glDrawBuffer(GL_BACK);
// Check whether certain features are supported // Check whether certain features are supported