Use string literal as panic message in `iced_glow`

This commit is contained in:
Héctor Ramón Jiménez 2021-02-16 00:04:36 +01:00
parent 9ba9558429
commit ec20763aef
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ pub unsafe fn create(
gl.compile_shader(shader); gl.compile_shader(shader);
if !gl.get_shader_compile_status(shader) { if !gl.get_shader_compile_status(shader) {
panic!(gl.get_shader_info_log(shader)); panic!("{}", gl.get_shader_info_log(shader));
} }
gl.attach_shader(program, shader); gl.attach_shader(program, shader);
@ -27,7 +27,7 @@ pub unsafe fn create(
gl.link_program(program); gl.link_program(program);
if !gl.get_program_link_status(program) { if !gl.get_program_link_status(program) {
panic!(gl.get_program_info_log(program)); panic!("{}", gl.get_program_info_log(program));
} }
for shader in shaders { for shader in shaders {