[client] egl: refactor egl_texture_free to use project naming standards

This commit is contained in:
Geoffrey McRae 2021-08-08 17:52:13 +10:00
parent baf9661530
commit 91d1b8d2cd
4 changed files with 5 additions and 5 deletions

View File

@ -129,7 +129,7 @@ static inline void egl_cursor_tex_uniforms(EGL_Cursor * cursor, struct CursorTex
static void egl_cursor_tex_free(struct CursorTex * t)
{
egl_texture_free(&t->texture);
egl_textureFree(&t->texture);
egl_shaderFree (&t->shader );
};

View File

@ -181,7 +181,7 @@ void egl_desktopFree(EGL_Desktop ** desktop)
if (!*desktop)
return;
egl_texture_free (&(*desktop)->texture );
egl_textureFree (&(*desktop)->texture );
egl_shaderFree (&(*desktop)->shader_generic.shader);
egl_desktopRectsFree(&(*desktop)->mesh );
@ -289,7 +289,7 @@ bool egl_desktop_update(EGL_Desktop * desktop, const FrameBuffer * frame, int dm
DEBUG_WARN("DMA update failed, disabling DMABUF imports");
desktop->useDMA = false;
egl_texture_free(&desktop->texture);
egl_textureFree(&desktop->texture);
if (!egl_textureInit(&desktop->texture, desktop->display, EGL_TEXTYPE_FRAMEBUFFER, true))
{
DEBUG_ERROR("Failed to initialize the desktop texture");

View File

@ -69,7 +69,7 @@ bool egl_textureInit(EGL_Texture ** texture, EGLDisplay * display,
return true;
}
void egl_texture_free(EGL_Texture ** tex)
void egl_textureFree(EGL_Texture ** tex)
{
(*tex)->ops.free(*tex);
*tex = NULL;

View File

@ -128,7 +128,7 @@ struct EGL_Texture
bool egl_textureInit(EGL_Texture ** texture, EGLDisplay * display,
EGL_TexType type, bool streaming);
void egl_texture_free(EGL_Texture ** tex);
void egl_textureFree(EGL_Texture ** tex);
bool egl_textureSetup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt,
size_t width, size_t height, size_t stride);