Hello,
I have found a nasty bug in open inventor which causes a memory leak,
and i was wondering if some of you know a solution or work around.
I have created a texture file with dimensions 2048x2048 i use the
folowing minification filter for this texture file:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
GL_NEAREST);
(in open inventor this means i set the SoComplexity::textureQuality
to a value 0.5)
When i replace this texture file with a new one, the old texture file
doesn't seems to be deleted. The funny thing is that when i use
glTexParameteri(GL_TEXTURE_2D,
GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR)
(in open inventor this means i set the SoComplexity::textureQuality
to a value 1.0)
the problem is gone and all works well.
Unfortunately i have the use gl_nearest, becaus i can't use mip maps
for this kind of texture map that i have created.
(I also noticed that this also occurs when i set
SoComplexity::textureQuality to a value that is not 1.0).
I also tested it on a ATI card and than GL_NEAREST doesn't cause a
memory leak.


|