[client] egl: tex is now an array, so check it properly for assignment

This commit is contained in:
Geoffrey McRae 2021-06-08 20:45:37 +10:00
parent 20d20f5c8a
commit 964403b4f8

View File

@ -250,7 +250,7 @@ bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_
texture->pitch = stride / texture->bpp;
if (texture->tex)
if (texture->tex[0])
glDeleteTextures(texture->bufferCount, texture->tex);
glGenTextures(texture->bufferCount, texture->tex);