diff --git a/client/renderers/EGL/texture_dmabuf.c b/client/renderers/EGL/texture_dmabuf.c index f753c006..2f410ffe 100644 --- a/client/renderers/EGL/texture_dmabuf.c +++ b/client/renderers/EGL/texture_dmabuf.c @@ -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; diff --git a/client/renderers/EGL/texture_framebuffer.c b/client/renderers/EGL/texture_framebuffer.c index 5523e73b..c0172dbf 100644 --- a/client/renderers/EGL/texture_framebuffer.c +++ b/client/renderers/EGL/texture_framebuffer.c @@ -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;