Skip to content

Commit e9f0026

Browse files
committed
Update 001-triangle-arrays1.rs
1 parent 3c4dc0a commit e9f0026

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/001-triangle-arrays1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ fn main() {
137137
}
138138

139139
let shader_program = glCreateProgram();
140+
assert_ne!(shader_program, 0);
140141
glAttachShader(shader_program, vertex_shader);
141142
glAttachShader(shader_program, fragment_shader);
142143
glLinkProgram(shader_program);

0 commit comments

Comments
 (0)