From: Patrick Porlan Date: Fri, 6 Sep 2013 14:55:55 +0000 (+0200) Subject: Add missing include in Mac VirtGL code X-Git-Tag: TizenStudio_2.0_p2.3~642^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e5f4158b32ea9eedaff470f6376b801c8bf2e18;p=sdk%2Femulator%2Fqemu.git Add missing include in Mac VirtGL code g_malloc was truncating a 64 bits address because of it --- diff --git a/tizen/src/hw/gloffscreen_agl.c b/tizen/src/hw/gloffscreen_agl.c index 2070bad..4ba1d15 100644 --- a/tizen/src/hw/gloffscreen_agl.c +++ b/tizen/src/hw/gloffscreen_agl.c @@ -27,6 +27,8 @@ #include #include #include +#include + /*hack due to conflicting typedefs in qemu's softfloat.h*/ #define __SECURITYHI__ 1 @@ -39,6 +41,8 @@ #else #define TRACE(...) #endif + + struct _GloContext { @@ -178,6 +182,7 @@ GloContext *__glo_context_create(int formatFlags) } } GloContext *context = (GloContext *)g_malloc(sizeof(*context)); + memset(context, 0, sizeof(*context)); context->formatFlags = formatFlags; context->pixelFormat = pf;