mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] use correct argument order for calloc
This commit is contained in:
parent
4d907cecab
commit
104141eec1
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user