[client] use correct argument order for calloc

This commit is contained in:
Quantum 2021-08-15 18:46:37 -04:00 committed by Geoffrey McRae
parent 4d907cecab
commit 104141eec1
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ static void egl_texDMABUFCleanup(TexDMABUF * this)
static bool egl_texDMABUFInit(EGL_Texture ** texture, EGLDisplay * display)
{
TexDMABUF * this = (TexDMABUF *)calloc(sizeof(*this), 1);
TexDMABUF * this = (TexDMABUF *)calloc(1, sizeof(*this));
*texture = &this->base.base;
EGL_Texture * parent = &this->base.base;

View File

@ -40,7 +40,7 @@ TexFB;
static bool egl_texFBInit(EGL_Texture ** texture, EGLDisplay * display)
{
TexFB * this = calloc(sizeof(*this), 1);
TexFB * this = calloc(1, sizeof(*this));
*texture = &this->base.base;
EGL_Texture * parent = &this->base.base;