mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-29 22:25:05 +00:00
Rename gl_coord_array_release to gl_coord_array_free
This commit is contained in:
parent
96012b2eee
commit
ed5891b8e8
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user