From cb9676907420c23cc01df75a368008bfd31f8189 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Sat, 4 Sep 2021 13:36:59 +0100 Subject: [PATCH] Fix incorrect usage of memset --- GL/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GL/draw.c b/GL/draw.c index c602cd7..9d65f45 100644 --- a/GL/draw.c +++ b/GL/draw.c @@ -303,7 +303,7 @@ static void _fillWhiteARGB(const GLubyte* __restrict__ input, GLubyte* __restri static void _fillZero2f(const GLubyte* __restrict__ input, GLubyte* __restrict__ out) { _GL_UNUSED(input); - memset(out, sizeof(float) * 2, 0); + memset(out, 0, sizeof(float) * 2); } static void _readVertexData3usARGB(const GLubyte* input, GLubyte* output) {