I just upgraded and rebuilt Panda1.8 from SVN.
Now when I compile my app the following error appears.
error: no suitable conversion function from "PointerTo<GraphicsStateGuardianBase>" to "PreparedGraphicsObjects *" exists
Has there been recent change in source code for prepare_now?
EDIT. I notice that in texture.h prepare_now is defined as:
Yes, this is a recent change, my apologies. You do have to expect the occasional change when you pull code directly from the head of the cvs trunk. We generally don’t update the headers with each new change; if we did, the headers would soon get very long. That’s what the cvs history is for.
You should pass 0 as the first parameter to prepare_now() if you are not using stereo textures.
It’s an odd use of prepare_now(), though. You prepare a texture and then immediately release it?
Well, it’s true that if your texture doesn’t have multiviews, it doesn’t really matter what value you put in for view. It will be understood to be 0 regardless. But 0 is the correct number of the first (or only) view.
OK, as long as you don’t release it until you’re done manipulating it with OpenGL. Calling release_texture() will tell Panda that it can safely reuse the texture ID for a different texture, so if you’re still using the texture ID directly in OpenGL you’ve got a smoking gun.