From 5c5fe00b276e6d18e1752f2d7f56c6190daa9355 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 17 Jun 2019 13:16:03 -0700 Subject: [PATCH] Fix build problem --- demo/common/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/common/src/device.rs b/demo/common/src/device.rs index 29b27540..a34f7f83 100644 --- a/demo/common/src/device.rs +++ b/demo/common/src/device.rs @@ -63,7 +63,7 @@ where ) -> GroundVertexArray { let vertex_array = device.create_vertex_array(); - let position_attr = device.get_vertex_attr(&ground_program.program, "Position"); + let position_attr = device.get_vertex_attr(&ground_program.program, "Position").unwrap(); device.bind_vertex_array(&vertex_array); device.use_program(&ground_program.program);