From 0444a408dd6667fb69fd6395b9b911bf61d21f76 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 9 Mar 2020 21:50:00 +0100 Subject: Window Demo: Fix updating when not runnning continuously --- examples/cube_view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/cube_view.h') diff --git a/examples/cube_view.h b/examples/cube_view.h index fb32595..82648ac 100644 --- a/examples/cube_view.h +++ b/examples/cube_view.h @@ -51,7 +51,7 @@ displayCube(PuglView* const view, glRotatef((float)xAngle, 0.0f, 1.0f, 0.0f); glRotatef((float)yAngle, 1.0f, 0.0f, 0.0f); - const float bg = entered ? 0.2f : 0.1f; + const float bg = entered ? 0.2f : 0.0f; glClearColor(bg, bg, bg, 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); -- cgit v1.2.1