comparison Renderer/Engine/task/Set_Texture.cc @ 603:57ec231bc8ac draft

long -> memaddr (64 or 32)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 07 Nov 2009 14:13:29 +0900
parents 92b0d490e839
children
comparison
equal deleted inserted replaced
602:92b0d490e839 603:57ec231bc8ac
21 } else { 21 } else {
22 //タスクが共有できる領域確保 22 //タスクが共有できる領域確保
23 void *data = s->global_alloc(TEXTURE_ID, MAX_LOAD_SIZE*4); 23 void *data = s->global_alloc(TEXTURE_ID, MAX_LOAD_SIZE*4);
24 24
25 memcpy(data, src[0], MAX_LOAD_SIZE); 25 memcpy(data, src[0], MAX_LOAD_SIZE);
26 memcpy((void*)((long)data + MAX_LOAD_SIZE), src[1], MAX_LOAD_SIZE); 26 memcpy((void*)((memaddr)data + MAX_LOAD_SIZE), src[1], MAX_LOAD_SIZE);
27 memcpy((void*)((long)data + MAX_LOAD_SIZE*2), src[2], MAX_LOAD_SIZE); 27 memcpy((void*)((memaddr)data + MAX_LOAD_SIZE*2), src[2], MAX_LOAD_SIZE);
28 memcpy((void*)((long)data + MAX_LOAD_SIZE*3), src[3], MAX_LOAD_SIZE); 28 memcpy((void*)((memaddr)data + MAX_LOAD_SIZE*3), src[3], MAX_LOAD_SIZE);
29 } 29 }
30 30
31 return 0; 31 return 0;
32 } 32 }