diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-11-26 16:28:57 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:29:02 +0300 |
commit | c2616bbdb630f4096c05b774b6f38573f75a4f29 (patch) | |
tree | 0be6246ac92133079e5560a79cfc038c09c714dc /qt_tstfrm | |
parent | 39401b7e18c0594d5d351328eb0588301b903408 (diff) |
refactored RenderPolicy and OpenGL extensions initialization.
Diffstat (limited to 'qt_tstfrm')
-rw-r--r-- | qt_tstfrm/tstwidgets.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/qt_tstfrm/tstwidgets.cpp b/qt_tstfrm/tstwidgets.cpp index 01e1ae7b39..571237aeb1 100644 --- a/qt_tstfrm/tstwidgets.cpp +++ b/qt_tstfrm/tstwidgets.cpp @@ -31,11 +31,12 @@ GLDrawWidget::~GLDrawWidget() void GLDrawWidget::initializeGL() { -#ifdef OMIM_OS_WINDOWS - win32::InitOpenGL(); -#endif - - if (!yg::gl::CheckExtensionSupport()) + try + { + yg::gl::InitExtensions(); + yg::gl::CheckExtensionSupport(); + } + catch (yg::gl::platform_unsupported & e) { /// TODO: Show "Please Update Drivers" dialog and close the program. } |