GLBuffer: fix isVBOSupported()

This commit is contained in:
Zheng, Lei
2018-08-29 12:39:45 +08:00
committed by wmayer
parent b5467b02ad
commit 4231194a37
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");