VirtGL: Fix warnings in helper_opengl.c
authorFrédéric Dalleau <frederic.dalleau@linux.intel.com>
Wed, 4 Sep 2013 10:48:50 +0000 (12:48 +0200)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 11 Sep 2013 09:17:36 +0000 (18:17 +0900)
Pointer to int conversions

Change-Id: Ifc1dd08d71b7a85c99b00ace353954a30f5dcdeb

tizen/src/hw/helper_opengl.c

index 3cab342..2d9a8b7 100644 (file)
@@ -64,7 +64,7 @@ static inline int do_decode_call_int(ProcessStruct *process, void *args_in, int
     Signature *signature;
     int i, ret;
     char *argptr;
-    static void* args[50];
+    static host_ptr args[50];
     int func_number;
 #ifdef __APPLE__
     char temp4mac[256];
@@ -140,9 +140,9 @@ static inline int do_decode_call_int(ProcessStruct *process, void *args_in, int
                                                r_buffer += 4;
 #ifdef __APPLE__
 /*On MAC OS, GL call glGetProgramInfoLog and glGetShaderInfoLog will crash if ouput pointer is NULL*/
-                                               args[i] = temp4mac;
+                                               args[i] = (host_ptr)temp4mac;
 #else
-                                               args[i] = NULL;
+                                               args[i] = (host_ptr)NULL;
 #endif
                                        } else if(*(int*)argptr) {
                         *(int*)r_buffer = args_size;