mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-10 09:28:08 +00:00
[client] egl: check for null before free
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user