From c1cd70e25abc1391aa3055fd09a22ae5197d7292 Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 4 Oct 2013 23:09:45 +0100 Subject: [PATCH] Disable OpenGL when Gtk3 is selected The OpenGL library is not supported on Gtk3 which uses the cairo library for rendering. Cairo, in turn uses hardware acceleration when supported by the underlying system. Some improvement to performance may be gained by useing the cairo-gl and cairo-glx libraries included on modern Gtk3 systems. See the cairo documentation for further information. The following link may also be of interest. http://lists.cairographics.org/archives/cairo/2012-October/023609.html --- cmake/OpenCVFindLibsGUI.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVFindLibsGUI.cmake b/cmake/OpenCVFindLibsGUI.cmake index d09ed892b1..ad95196485 100644 --- a/cmake/OpenCVFindLibsGUI.cmake +++ b/cmake/OpenCVFindLibsGUI.cmake @@ -47,7 +47,7 @@ if(WITH_GTK AND NOT HAVE_QT) CHECK_MODULE(gtk+-2.0 HAVE_GTK) endif() CHECK_MODULE(gthread-2.0 HAVE_GTHREAD) - if(WITH_OPENGL) + if(WITH_OPENGL AND NOT HAVE_GTK3) CHECK_MODULE(gtkglext-1.0 HAVE_GTKGLEXT) endif() endif()