Proper OpenGL limit for QT
This commit is contained in:
parent
af9ed378b4
commit
49f2fff2b0
2
3rdparty/qtimgui/ImGuiRenderer.cpp
vendored
2
3rdparty/qtimgui/ImGuiRenderer.cpp
vendored
@ -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();
|
||||
|
4
3rdparty/qtimgui/ImGuiRenderer.h
vendored
4
3rdparty/qtimgui/ImGuiRenderer.h
vendored
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user