diff options
author | David Robillard <d@drobilla.net> | 2020-03-09 21:50:00 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-09 22:17:44 +0100 |
commit | 0444a408dd6667fb69fd6395b9b911bf61d21f76 (patch) | |
tree | 34b833941ffd6ea7005b3a783cf7fdbe615f5bc9 /examples/cube_view.h | |
parent | d949a78a774b7abe274b2d04a92d424a51e0698c (diff) | |
download | pugl-0444a408dd6667fb69fd6395b9b911bf61d21f76.tar.gz pugl-0444a408dd6667fb69fd6395b9b911bf61d21f76.tar.bz2 pugl-0444a408dd6667fb69fd6395b9b911bf61d21f76.zip |
Window Demo: Fix updating when not runnning continuously
Diffstat (limited to 'examples/cube_view.h')
-rw-r--r-- | examples/cube_view.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |