aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_shader_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pugl_shader_demo.c')
-rw-r--r--examples/pugl_shader_demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pugl_shader_demo.c b/examples/pugl_shader_demo.c
index 7c0df6a..15e1943 100644
--- a/examples/pugl_shader_demo.c
+++ b/examples/pugl_shader_demo.c
@@ -306,7 +306,7 @@ setupGl(PuglTestApp* app)
"UniformBufferObject");
// Generate/bind a uniform buffer for setting rectangle properties
- GLuint uboHandle;
+ GLuint uboHandle = 0;
glGenBuffers(1, &uboHandle);
glBindBuffer(GL_UNIFORM_BUFFER, uboHandle);
glBindBufferBase(GL_UNIFORM_BUFFER, globalsIndex, uboHandle);