Rename gl_coord_array_release to gl_coord_array_free

This commit is contained in:
twinaphex 2015-03-29 19:25:48 +02:00
parent 96012b2eee
commit ed5891b8e8
4 changed files with 11 additions and 5 deletions

View File

@ -184,7 +184,7 @@ bool gl_coord_array_add(gl_coord_array_t *ca, const gl_coords_t *coords, unsigne
return success;
}
void gl_coord_array_release(gl_coord_array_t *ca)
void gl_coord_array_free(gl_coord_array_t *ca)
{
if (!ca->allocated)
return;

View File

@ -21,7 +21,6 @@
#include "font_renderer_driver.h"
#include <gfx/math/matrix_4x4.h>
#include <gfx/scaler/scaler.h>
//#include "font_gl_driver.h"
#include <formats/image.h>
#include "video_shader_driver.h"
#include <retro_inline.h>
@ -440,6 +439,6 @@ static INLINE unsigned gl_wrap_type_to_enum(enum gfx_wrap_type type)
}
bool gl_coord_array_add(gl_coord_array_t *ca, const gl_coords_t *coords, unsigned count);
void gl_coord_array_release(gl_coord_array_t *ca);
void gl_coord_array_free(gl_coord_array_t *ca);
#endif

View File

@ -543,7 +543,10 @@ static void glui_free(void *data)
menu_handle_t *menu = (menu_handle_t*)data;
glui_handle_t *glui = (glui_handle_t*)menu->userdata;
gl_coord_array_release(&glui->raster_block.carr);
if (!glui)
return;
gl_coord_array_free(&glui->raster_block.carr);
font_driver = (const struct gl_font_renderer*)gl->font_driver;

View File

@ -1527,7 +1527,11 @@ static void xmb_free(void *data)
if (menu && menu->userdata)
{
xmb = (xmb_handle_t*)menu->userdata;
gl_coord_array_release(&xmb->raster_block.carr);
if (!xmb)
return;
gl_coord_array_free(&xmb->raster_block.carr);
free(menu->userdata);
menu->userdata = NULL;