mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-10 22:33:58 +00:00
[client] egl: refactor egl_texture_free to use project naming standards
This commit is contained in:
parent
baf9661530
commit
91d1b8d2cd
4 changed files with 5 additions and 5 deletions
|
@ -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)
|
static void egl_cursor_tex_free(struct CursorTex * t)
|
||||||
{
|
{
|
||||||
egl_texture_free(&t->texture);
|
egl_textureFree(&t->texture);
|
||||||
egl_shaderFree (&t->shader );
|
egl_shaderFree (&t->shader );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ void egl_desktopFree(EGL_Desktop ** desktop)
|
||||||
if (!*desktop)
|
if (!*desktop)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
egl_texture_free (&(*desktop)->texture );
|
egl_textureFree (&(*desktop)->texture );
|
||||||
egl_shaderFree (&(*desktop)->shader_generic.shader);
|
egl_shaderFree (&(*desktop)->shader_generic.shader);
|
||||||
egl_desktopRectsFree(&(*desktop)->mesh );
|
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");
|
DEBUG_WARN("DMA update failed, disabling DMABUF imports");
|
||||||
desktop->useDMA = false;
|
desktop->useDMA = false;
|
||||||
|
|
||||||
egl_texture_free(&desktop->texture);
|
egl_textureFree(&desktop->texture);
|
||||||
if (!egl_textureInit(&desktop->texture, desktop->display, EGL_TEXTYPE_FRAMEBUFFER, true))
|
if (!egl_textureInit(&desktop->texture, desktop->display, EGL_TEXTYPE_FRAMEBUFFER, true))
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Failed to initialize the desktop texture");
|
DEBUG_ERROR("Failed to initialize the desktop texture");
|
||||||
|
|
|
@ -69,7 +69,7 @@ bool egl_textureInit(EGL_Texture ** texture, EGLDisplay * display,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void egl_texture_free(EGL_Texture ** tex)
|
void egl_textureFree(EGL_Texture ** tex)
|
||||||
{
|
{
|
||||||
(*tex)->ops.free(*tex);
|
(*tex)->ops.free(*tex);
|
||||||
*tex = NULL;
|
*tex = NULL;
|
||||||
|
|
|
@ -128,7 +128,7 @@ struct EGL_Texture
|
||||||
|
|
||||||
bool egl_textureInit(EGL_Texture ** texture, EGLDisplay * display,
|
bool egl_textureInit(EGL_Texture ** texture, EGLDisplay * display,
|
||||||
EGL_TexType type, bool streaming);
|
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,
|
bool egl_textureSetup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt,
|
||||||
size_t width, size_t height, size_t stride);
|
size_t width, size_t height, size_t stride);
|
||||||
|
|
Loading…
Reference in a new issue