Merge branch 'master' of git.kde.org:kde-workspace
This commit is contained in:
commit
c2367fabe0
1 changed files with 3 additions and 10 deletions
|
@ -81,16 +81,9 @@ int main(int argc, char *argv[])
|
||||||
if ((major == 1 && minor < 3) && !strstr(glxExtensions, "GLX_EXT_texture_from_pixmap"))
|
if ((major == 1 && minor < 3) && !strstr(glxExtensions, "GLX_EXT_texture_from_pixmap"))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
// Assume that direct rendering works with DRI2 drivers
|
// Assume that all Mesa drivers support direct rendering
|
||||||
const GLubyte *renderer = glGetString(GL_RENDERER);
|
const GLubyte *version = glGetString(GL_VERSION);
|
||||||
if (strstr((const char *)renderer, "DRI2"))
|
if (strstr((const char *)version, "Mesa"))
|
||||||
return 0;
|
|
||||||
|
|
||||||
// The Intel driver doesn't have DRI2 in the renderer string
|
|
||||||
if (strstr((const char *)renderer, "GEM"))
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (strstr((const char *)renderer, "Gallium"))
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// Direct contexts also work with the NVidia driver
|
// Direct contexts also work with the NVidia driver
|
||||||
|
|
Loading…
Reference in a new issue