Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Inventor API > GL_TEXTURE_MIN_...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 480 of 501
Post > Topic >>

GL_TEXTURE_MIN_FILTER creates memory leak with NVDIA graphics card

by pmolle@[EMAIL PROTECTED] May 27, 2007 at 02:15 AM

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.
 




 1 Posts in Topic:
GL_TEXTURE_MIN_FILTER creates memory leak with NVDIA graphics ca
pmolle@[EMAIL PROTECTED]   2007-05-27 02:15:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 16:25:44 CDT 2008.