PDA

View Full Version : Can not change the loaded texture in OpenGL ES



mobilevisuals
09-23-2009, 10:44 AM
I want to change the JPG picture that I am using for the texture in OpenGL ES. This is my code for loading the texture:

_LIT(KHubbleTexture, "nasa_hubble.jpg");
iTextureManager->RequestToLoad(KHubbleTexture, &iNasaHubble);
iTextureManager->DoLoadL();

I started with the example project from the OpenGLEx texture project from Nokia, which I have modified. Whatever I do, the same texture is loaded. When I change the texture file from nasa_hubble.jpg to a texture with another name, I get errors. When I replace the original texture with a new texture but with the same name, the original texture is still loaded. It is very strange, because the original nasa_hubble.jpg texture is not in the project anymore. What can I do to get the new texture loaded?