mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27: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)
|
void egl_textureFree(EGL_Texture ** tex)
|
||||||
{
|
{
|
||||||
EGL_Texture * this = *tex;
|
EGL_Texture * this = *tex;
|
||||||
|
if (!this)
|
||||||
|
return;
|
||||||
|
|
||||||
glDeleteSamplers(1, &this->sampler);
|
glDeleteSamplers(1, &this->sampler);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user