Hi,
I am implementing an eraser tool on a 512512512 bytes 3d texture
Here is my code:
eraser_texture : ^byte;
Getmem(eraser_texture,505050);
Zeromemory(eraser_texture, 505050);
glTexSubImage3DExt (GL_TEXTURE_3D, 0, 200, 200, 0,50, 50, 50, GL_Luminance, GL_UNSIGNED_BYTE, eraser_texture);
Unfortunately, the glTexSubImage3DExt function gives an access violation. Although this is not a solution, when I doubled the size of the eraser_texture pointer, the function worked fine. What am I missing??