mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 21:47:23 +00:00
[client] egl: implement free for texture frambuffer
This commit is contained in:
parent
f8ae291090
commit
d347b28481
@ -59,6 +59,15 @@ static bool eglTexFB_init(EGL_Texture ** texture, EGLDisplay * display)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void eglTexFB_free(EGL_Texture * texture)
|
||||||
|
{
|
||||||
|
TextureBuffer * parent = UPCAST(TextureBuffer, texture);
|
||||||
|
TexFB * this = UPCAST(TexFB , parent );
|
||||||
|
|
||||||
|
eglTexBuffer_free(texture);
|
||||||
|
free(this);
|
||||||
|
}
|
||||||
|
|
||||||
static bool eglTexFB_update(EGL_Texture * texture, const EGL_TexUpdate * update)
|
static bool eglTexFB_update(EGL_Texture * texture, const EGL_TexUpdate * update)
|
||||||
{
|
{
|
||||||
TextureBuffer * parent = UPCAST(TextureBuffer, texture);
|
TextureBuffer * parent = UPCAST(TextureBuffer, texture);
|
||||||
@ -124,7 +133,7 @@ static bool eglTexFB_update(EGL_Texture * texture, const EGL_TexUpdate * update)
|
|||||||
EGL_TextureOps EGL_TextureFrameBuffer =
|
EGL_TextureOps EGL_TextureFrameBuffer =
|
||||||
{
|
{
|
||||||
.init = eglTexFB_init,
|
.init = eglTexFB_init,
|
||||||
.free = eglTexBuffer_free,
|
.free = eglTexFB_free,
|
||||||
.setup = eglTexBuffer_stream_setup,
|
.setup = eglTexBuffer_stream_setup,
|
||||||
.update = eglTexFB_update,
|
.update = eglTexFB_update,
|
||||||
.process = eglTexBuffer_stream_process,
|
.process = eglTexBuffer_stream_process,
|
||||||
|
Loading…
Reference in New Issue
Block a user