mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[client] egl: check for null before free
This commit is contained in:
parent
947db38bc9
commit
6699018ed1
@ -79,6 +79,8 @@ bool egl_textureInit(EGL_Texture ** texture_, EGLDisplay * display,
|
||||
void egl_textureFree(EGL_Texture ** tex)
|
||||
{
|
||||
EGL_Texture * this = *tex;
|
||||
if (!this)
|
||||
return;
|
||||
|
||||
glDeleteSamplers(1, &this->sampler);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user