From 750b1c5365eb6fb969eff27bb1d6ba85ef38626f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 5 Feb 2020 02:01:47 +0100 Subject: [PATCH] Fix rendering race in offscreen example (cherry picked from commit 4b8ac11aa31352d4a09fbe1e2e234587bd0d3a78) --- examples/offscreen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/offscreen.c b/examples/offscreen.c index eca37c48..16b8f3c9 100644 --- a/examples/offscreen.c +++ b/examples/offscreen.c @@ -148,6 +148,7 @@ int main(void) glUseProgram(program); glUniformMatrix4fv(mvp_location, 1, GL_FALSE, (const GLfloat*) mvp); glDrawArrays(GL_TRIANGLES, 0, 3); + glFinish(); #if USE_NATIVE_OSMESA glfwGetOSMesaColorBuffer(window, &width, &height, NULL, (void**) &buffer);