mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
graw: Fix file handle leaks.
This commit is contained in:
parent
d09271d6ef
commit
380f08f4ec
3 changed files with 3 additions and 0 deletions
|
|
@ -223,6 +223,7 @@ static void set_fragment_shader( const char *filename )
|
|||
|
||||
handle = graw_parse_fragment_shader(ctx, buf);
|
||||
ctx->bind_fs_state(ctx, handle);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -238,6 +238,7 @@ static void set_geometry_shader( void )
|
|||
|
||||
handle = graw_parse_geometry_shader(ctx, buf);
|
||||
ctx->bind_gs_state(ctx, handle);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -202,6 +202,7 @@ static void set_vertex_shader( void )
|
|||
|
||||
handle = graw_parse_vertex_shader(ctx, buf);
|
||||
ctx->bind_vs_state(ctx, handle);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
static void set_fragment_shader( void )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue