kinfocenter: fix build with OpenGLES

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-05-15 16:34:26 +00:00
parent a55f087529
commit 50163dd291
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ if(OPENGL_FOUND AND OPENGL_GLU_FOUND)
endif() endif()
if(OPENGLES_FOUND) if(OPENGLES_FOUND)
set(KCM_ENABLE_OPENGLES TRUE)
include_directories( ${OPENGLES_INCLUDE_DIR} ) include_directories( ${OPENGLES_INCLUDE_DIR} )
endif() endif()

View file

@ -793,7 +793,7 @@ static QTreeWidgetItem *get_gl_info(Display *dpy, int scrnum, Bool allowDirect,
gli.glExtensions = (const char *) glGetString(GL_EXTENSIONS); gli.glExtensions = (const char *) glGetString(GL_EXTENSIONS);
gli.displayName = NULL; gli.displayName = NULL;
IsDirect = TRUE; IsDirect = true;
result = print_screen_info(l1, after); result = print_screen_info(l1, after);
} }
else { else {