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

This commit is contained in:
Geoffrey McRae committed 2021-06-08 20:45:37 +10:00
1 parent 20d20f5c8a
commit 964403b4f8
1 file changed
+1 -1
+1 -1
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);