I'm referring to this line. This is what I expect to work:
C3D_Tex tex;
C3D_TexInit(&tex, 64, 64, GPU_RGB8);
However it will fail depending on the initial value of the data pointer. At the moment, I just use tex.data = NULL; before it. Perhaps it's better to trust the user won't initialize multiple times instead of requiring the struct to be zero'd?
I'm referring to this line. This is what I expect to work:
However it will fail depending on the initial value of the data pointer. At the moment, I just use
tex.data = NULL;
before it. Perhaps it's better to trust the user won't initialize multiple times instead of requiring the struct to be zero'd?