QOpenGLExtraFunctions缺少成员函数

时间:2018-08-02 08:58:47

标签: qt opengl virtualbox mesa

我正在VirtualBox中运行Ubuntu 18.04。我要构建项目后,立即收到此错误消息

error: ‘class QOpenGLExtraFunctions’ has no member named ‘glTexBuffer’; did you mean ‘glReadBuffer’?
             MBGL.glTexBuffer(GL_TEXTURE_BUFFER, GL_RGBA32F, m_buildingColorBuffer);

因此,我认为OpenGL版本不正确。我更新了所有内容, “ glxInfo”给我这些信息

OpenGL renderer string: llvmpipe (LLVM 6.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.1.5
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 18.1.5
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.1.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

这似乎很好,因为3.x支持glTexBuffer

还有其他我可以做的事情吗,或者glTexBuffer()的替代方法

0 个答案:

没有答案