memory leak

Started by
1 comment, last by FGFS 10 years ago

Hi

after integrating:

http://nehe.gamedev.net/tutorial/sphere_mapping_quadrics_in_opengl/15005/

in my x-plane plugin, it eats memory.

Any ideas on how to locate and eliminate the problem? What could it be?

Many thanks

Michael

Advertisement

You're question is a bit vague. What did you mean with integrating? Did you copy the code or did you write your own code based on it? Have you already tried tools like this? And to be certain, what programming language are you using?

PS: Solved, it needed a GLuint cast.

Thanks. It seems to boil down that I need to add glDeleteTextures:

XPLMBindTexture2d(gTexture[8], 0);
...
glDeleteTextures(1, &gTexture[8]);

I get:
Invalid arguments ' Candidates are: void glDeleteTextures(int, const unsigned int *)
gTexture is defined as:
XPLMTextureID gTexture[MAX_TEXTURES];

Any ideas? Thanks again

This topic is closed to new replies.

Advertisement