display: change default OpenGL version for Qt gui
authorJinhyung Jo <jinhyung.jo@samsung.com>
Tue, 25 Oct 2016 02:56:30 +0000 (11:56 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 2 Dec 2016 08:31:06 +0000 (17:31 +0900)
commit9bd89b92f93eb1726e4bfc1bfafb278c2682ff06
tree5f9b042a96f26476cea3d7e664645599568cc93d
parent8b2a1d82ca954723144526fe4bebc0f6b29c1232
display: change default OpenGL version for Qt gui

There are 2 issues:
With some Radeon GPU,
the Qt5 library makes runtime errors infinitely with glCreateShader
like below in Qt5 internal implementations:
'Implicit version number 110 not supported by GL3 forward compatible context'
The issue that VIGS uses OpenGL version 2,
    : starts with the force legacy option(gl_version=2).
    : User's GPU driver does not support OpenGL version 3.2.

In order to avoid these problems, use the OpenGL 3.2 Core Profile
instead of the OpenGL 3.1 to create shared context.
And after creating the shared context, reset to OpenGL versio 2.1.

Change-Id: I2d67580827b1eda53478adccf774d9ab1342b42a
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
tizen/src/ui/displayglwidget.cpp
tizen/src/ui/qt5.c
tizen/src/ui/qt5_supplement.cpp