graw: Fix file handle leaks.

This commit is contained in:
Vinson Lee 2010-06-07 18:34:13 -07:00
parent d09271d6ef
commit 380f08f4ec
3 changed files with 3 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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 )