Erik Hofman wrote :
> > Frederic Bouvier wrote: 
> > Please ignore my previous patch. It only produce white splash. Instead, 
> > please apply the one below. The memory is deleted in the destructor. 
> 
> Well, that way the texture data is kept in memory at three different places: 
> 
> 1. Main memory (because of your patch) 
> 2. Main memory (OpenGL driver) 
> 3. Texture memory. 
> 
> We should be able to delete the texture data after sending it to OpenGL. 

Are you sure 1. and 2. are separate areas ? Is the copy specified in
OpenGL ?

After I submitted the first patch, I noticed 2 white splash in a row, then I 
removed the delete and the clear of the pointer and the white splash 
disappeared.

I can make more test this evening to be sure.

-Fred


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to