Ogre 1.10.8 Ogre::VertexDeclaration

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
[nighthawk]
Gnoblar
Posts: 4
Joined: Tue Oct 10, 2017 2:04 am

Ogre 1.10.8 Ogre::VertexDeclaration

Post by [nighthawk] »

version 1.10.8 Android platform
adding element to declaration crashes:

Ogre::VertexDeclaration* decl = vertexData->vertexDeclaration;
decl->addElement(0, offset, Ogre::VET_FLOAT3, Ogre::VES_POSITION);

Anybody can help?
[nighthawk]
Gnoblar
Posts: 4
Joined: Tue Oct 10, 2017 2:04 am

Re: Ogre 1.10.8 Ogre::VertexDeclaration

Post by [nighthawk] »

It turns out - problem is not with VertexDecleration, but with Ogre Singletons (or with singletons on Android in general)
Calls to ::getSingleton() or ::getSingletonPtr() are (randomly) failing - (assertion ptr == NULL) even though a class was properly initialized with OGRE_NEW ...
Did anybody experience this? Any solution?
Post Reply