mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
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
This commit is contained in:
parent
81d6842b8e
commit
c1cd70e25a
@ -47,7 +47,7 @@ if(WITH_GTK AND NOT HAVE_QT)
|
|||||||
CHECK_MODULE(gtk+-2.0 HAVE_GTK)
|
CHECK_MODULE(gtk+-2.0 HAVE_GTK)
|
||||||
endif()
|
endif()
|
||||||
CHECK_MODULE(gthread-2.0 HAVE_GTHREAD)
|
CHECK_MODULE(gthread-2.0 HAVE_GTHREAD)
|
||||||
if(WITH_OPENGL)
|
if(WITH_OPENGL AND NOT HAVE_GTK3)
|
||||||
CHECK_MODULE(gtkglext-1.0 HAVE_GTKGLEXT)
|
CHECK_MODULE(gtkglext-1.0 HAVE_GTKGLEXT)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user