diff --git a/client/renderers/EGL/texture.c b/client/renderers/EGL/texture.c index 2c02e0cf..c6a45cdb 100644 --- a/client/renderers/EGL/texture.c +++ b/client/renderers/EGL/texture.c @@ -294,7 +294,7 @@ enum EGL_TexStatus egl_textureBind(EGL_Texture * this) free(this->bindData); BindData * bd = (BindData *)calloc(1, sizeof(struct BindData) + - sizeof(bd->dimensions[0]) * ll_count(this->render) * 2); + sizeof(bd->dimensions[0]) * (ll_count(this->render)+1) * 2); bd->sampler = this->sampler; this->bindData = bd;