From 50163dd2913356eab00f68824cbc79626ca6116f Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 15 May 2019 16:34:26 +0000 Subject: [PATCH] kinfocenter: fix build with OpenGLES Signed-off-by: Ivailo Monev --- kinfocenter/Modules/opengl/CMakeLists.txt | 1 + kinfocenter/Modules/opengl/opengl.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kinfocenter/Modules/opengl/CMakeLists.txt b/kinfocenter/Modules/opengl/CMakeLists.txt index 523b7eb4..01915112 100644 --- a/kinfocenter/Modules/opengl/CMakeLists.txt +++ b/kinfocenter/Modules/opengl/CMakeLists.txt @@ -3,6 +3,7 @@ if(OPENGL_FOUND AND OPENGL_GLU_FOUND) endif() if(OPENGLES_FOUND) + set(KCM_ENABLE_OPENGLES TRUE) include_directories( ${OPENGLES_INCLUDE_DIR} ) endif() diff --git a/kinfocenter/Modules/opengl/opengl.cpp b/kinfocenter/Modules/opengl/opengl.cpp index 34275d21..0c8da9c0 100644 --- a/kinfocenter/Modules/opengl/opengl.cpp +++ b/kinfocenter/Modules/opengl/opengl.cpp @@ -793,7 +793,7 @@ static QTreeWidgetItem *get_gl_info(Display *dpy, int scrnum, Bool allowDirect, gli.glExtensions = (const char *) glGetString(GL_EXTENSIONS); gli.displayName = NULL; - IsDirect = TRUE; + IsDirect = true; result = print_screen_info(l1, after); } else {