projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0911645
)
Add missing include in Mac VirtGL code
author
Patrick Porlan
<patrick.porlan@intel.com>
Fri, 6 Sep 2013 14:55:55 +0000
(16:55 +0200)
committer
Patrick 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
patch
|
blob
|
history
diff --git
a/tizen/src/hw/gloffscreen_agl.c
b/tizen/src/hw/gloffscreen_agl.c
index
2070bad
..
4ba1d15
100644
(file)
--- a/
tizen/src/hw/gloffscreen_agl.c
+++ b/
tizen/src/hw/gloffscreen_agl.c
@@
-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;