fix: Use QOpenGLExtraFunctions for glBindVertexArray
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#include "SketchGrid.h"
|
||||
#include <QOpenGLContext>
|
||||
#include <QOpenGLExtraFunctions>
|
||||
#include <QOpenGLShaderProgram>
|
||||
#include <QVector>
|
||||
|
||||
@@ -39,7 +41,7 @@ void SketchGrid::paintGL(SketchPlane plane, QOpenGLShaderProgram* shaderProgram,
|
||||
drawAxes(plane, shaderProgram, colorLoc);
|
||||
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glBindVertexArray(previous_vao);
|
||||
QOpenGLContext::currentContext()->extraFunctions()->glBindVertexArray(previous_vao);
|
||||
}
|
||||
|
||||
void SketchGrid::drawGridLines(SketchPlane plane, QOpenGLShaderProgram* shaderProgram, int colorLoc)
|
||||
|
||||
Reference in New Issue
Block a user