aboutsummaryrefslogtreecommitdiffstats
path: root/examples/cube_view.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-09 21:50:00 +0100
committerDavid Robillard <d@drobilla.net>2020-03-09 22:17:44 +0100
commit0444a408dd6667fb69fd6395b9b911bf61d21f76 (patch)
tree34b833941ffd6ea7005b3a783cf7fdbe615f5bc9 /examples/cube_view.h
parentd949a78a774b7abe274b2d04a92d424a51e0698c (diff)
downloadpugl-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.h2
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);