PDA

View Full Version : OpenGL texture question



davidgf
February 1st, 2008, 01:00
Hello!

This is a question for chui and his SDL-GL driver.

When I load a texture I create a buffer with the raw data and then I create a texture id. After this I delete the buffer. Is this correct?

If the Dreamcast hasn't got enough space in VRAM for textures does GL mantain a copy of it in the RAM? OpenGL does as I've said in a computer, but I dont' know how is it implemented in your driver.

Thanks!

David

chui
March 14th, 2008, 23:09
Hello!

This is a question for chui and his SDL-GL driver.

When I load a texture I create a buffer with the raw data and then I create a texture id. After this I delete the buffer. Is this correct?

If the Dreamcast hasn't got enough space in VRAM for textures does GL mantain a copy of it in the RAM? OpenGL does as I've said in a computer, but I dont' know how is it implemented in your driver.

Thanks!

David
After create texture you can free this memory, it is not necessary any more times because GL has made a VRAM texture, so GL only support 8MB of 16bit textures.