GLBuffer: fix isVBOSupported()

This commit is contained in:
Zheng, Lei
2018-08-29 12:39:45 +08:00
committed by wmayer
parent 864ca1e470
commit 3f0c474a71
3 changed files with 6 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ bool MeshRenderer::Private::canRenderGLArray(SoGLRenderAction *action) const
static bool init = false;
static bool vboAvailable = false;
if (!init) {
vboAvailable = Gui::OpenGLBuffer::isVBOSupported();
vboAvailable = Gui::OpenGLBuffer::isVBOSupported(action->getCacheContext());
if (!vboAvailable) {
SoDebugError::postInfo("MeshRenderer",
"GL_ARB_vertex_buffer_object extension not supported");