diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-10-29 09:34:20 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-10-29 09:34:20 +0100 |
commit | 49f2fff2b06cefd59a7d314c6e049f224bb2ee11 (patch) | |
tree | 631dac00e621a3312c60203ca1277d20ac8d5a18 | |
parent | af9ed378b49b19abcc2a8e4aa8877f5f1f0e0984 (diff) | |
download | nextpnr-49f2fff2b06cefd59a7d314c6e049f224bb2ee11.tar.gz nextpnr-49f2fff2b06cefd59a7d314c6e049f224bb2ee11.tar.bz2 nextpnr-49f2fff2b06cefd59a7d314c6e049f224bb2ee11.zip |
Proper OpenGL limit for QT
-rw-r--r-- | 3rdparty/qtimgui/ImGuiRenderer.cpp | 2 | ||||
-rw-r--r-- | 3rdparty/qtimgui/ImGuiRenderer.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/3rdparty/qtimgui/ImGuiRenderer.cpp b/3rdparty/qtimgui/ImGuiRenderer.cpp index 21a2423a..e77b47de 100644 --- a/3rdparty/qtimgui/ImGuiRenderer.cpp +++ b/3rdparty/qtimgui/ImGuiRenderer.cpp @@ -39,7 +39,7 @@ QByteArray g_currentClipboardText; void ImGuiRenderer::initialize(WindowWrapper *window) { m_window.reset(window); initializeOpenGLFunctions(); - g_fun = new QOpenGLFunctions_3_3_Core(); + g_fun = new QOpenGLFunctions_3_2_Core(); g_fun->initializeOpenGLFunctions(); ImGui::CreateContext(); diff --git a/3rdparty/qtimgui/ImGuiRenderer.h b/3rdparty/qtimgui/ImGuiRenderer.h index f0d7315e..8962c07b 100644 --- a/3rdparty/qtimgui/ImGuiRenderer.h +++ b/3rdparty/qtimgui/ImGuiRenderer.h @@ -1,7 +1,7 @@ #pragma once #include <QOpenGLFunctions> -#include <QOpenGLFunctions_3_3_Core> +#include <QOpenGLFunctions_3_2_Core> #include <QObject> #include <QPoint> #include <imgui.h> @@ -54,7 +54,7 @@ private: int g_AttribLocationTex = 0, g_AttribLocationProjMtx = 0; int g_AttribLocationPosition = 0, g_AttribLocationUV = 0, g_AttribLocationColor = 0; unsigned int g_VboHandle = 0, g_VaoHandle = 0, g_ElementsHandle = 0; - QOpenGLFunctions_3_3_Core *g_fun = nullptr; + QOpenGLFunctions_3_2_Core *g_fun = nullptr; }; } |