summaryrefslogtreecommitdiffstats
path: root/examples/server-buffer/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server-buffer/client/main.cpp')
-rw-r--r--examples/server-buffer/client/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/server-buffer/client/main.cpp b/examples/server-buffer/client/main.cpp
index 1880f2160..ce705b6a7 100644
--- a/examples/server-buffer/client/main.cpp
+++ b/examples/server-buffer/client/main.cpp
@@ -112,8 +112,8 @@ public slots:
}
m_context->makeCurrent(this);
-
- glBindFramebuffer(GL_FRAMEBUFFER, m_context->defaultFramebufferObject());
+ QOpenGLFunctions *funcs = m_context->functions();
+ funcs->glBindFramebuffer(GL_FRAMEBUFFER, m_context->defaultFramebufferObject());
glViewport(0, 0, width() * devicePixelRatio(), height() * devicePixelRatio());
glClearColor(0.f, 0.f, 0.0f, 1.f);