Skip to content

Commit 9ad5ece

Browse files
authored
Use new create_surface method in examples/transforms.rs (#43)
1 parent a33ed5b commit 9ad5ece

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/transforms.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ fn sketch() -> error::Result<()> {
1515
let mut glfw_ctx = GlfwContext::new(400, 400)?;
1616
init()?;
1717

18-
let window_handle = glfw_ctx.get_window();
19-
let display_handle = glfw_ctx.get_display();
20-
let surface = surface_create(window_handle, display_handle, 400, 400, 1.0)?;
18+
let surface = glfw_ctx.create_surface(400, 400, 1.0)?;
2119
let graphics = graphics_create(surface, 400, 400)?;
2220

2321
let mut t: f32 = 0.0;

0 commit comments

Comments
 (0)