Add missing include in Mac VirtGL code
authorPatrick Porlan <patrick.porlan@intel.com>
Fri, 6 Sep 2013 14:55:55 +0000 (16:55 +0200)
committerPatrick Porlan <patrick.porlan@intel.com>
Fri, 6 Sep 2013 14:55:55 +0000 (16:55 +0200)
g_malloc was truncating a 64 bits address because of it

tizen/src/hw/gloffscreen_agl.c

index 2070bad..4ba1d15 100644 (file)
@@ -27,6 +27,8 @@
 #include <string.h> 
 #include <inttypes.h>
 #include <dlfcn.h>
+#include <glib.h>
+
 /*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;