#123191 - zeGouky - Mon Mar 26, 2007 1:08 am
Hi all,
i was wondering how to change the texture data after allocation and i found some answers on the forum but i get black pixel on the first 64 lines of the screen.
To change the texture data i'm using the function glTexImage2D_retAddr found on the forum and when i want to change the data im doing like that :
I tried swiCopy and im getting the result, if I copy only half of the texture then no black lines.
Anyone already had this issue ?
i was wondering how to change the texture data after allocation and i found some answers on the forum but i get black pixel on the first 64 lines of the screen.
To change the texture data i'm using the function glTexImage2D_retAddr found on the forum and when i want to change the data im doing like that :
Code: |
uint32 vram_temp = vramSetMainBanks( VRAM_A_LCD, VRAM_B_LCD, VRAM_C_LCD, VRAM_D_LCD); dmaCopy( data, texture_addr, (256*256)<<1); vramRestoreMainBanks( vram_temp); |
I tried swiCopy and im getting the result, if I copy only half of the texture then no black lines.
Anyone already had this issue ?