Proper OpenGL limit for QT

This commit is contained in:
Miodrag Milanovic 2018-10-29 09:34:20 +01:00
parent af9ed378b4
commit 49f2fff2b0
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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;
};
}