Fix rendering race in offscreen example

(cherry picked from commit 4b8ac11aa3)
This commit is contained in:
Camilla Löwy 2020-02-05 02:01:47 +01:00
parent 1d711057a1
commit 750b1c5365

View File

@ -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);