improve opengl portability
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
OpenGLMesh::OpenGLMesh(QVector<float> verts, QOpenGLTexture *tex)
|
||||
:tex(tex) {
|
||||
OpenGLWidget::instance->makeCurrent();
|
||||
QOpenGLFunctions_4_4_Core *glf = OpenGLWidget::instance;
|
||||
QOpenGLExtraFunctions *glf = OpenGLWidget::instance;
|
||||
nverts = verts.size() / 8;
|
||||
glf->glGenVertexArrays(1, &vao);
|
||||
glf->glBindVertexArray(vao);
|
||||
|
Reference in New Issue
Block a user