Use string literal as panic message in iced_glow
This commit is contained in:
parent
9ba9558429
commit
ec20763aef
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue