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] » Fri Oct 20, 2017 9:54 pm

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?
0 x

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

Re: Ogre 1.10.8 Ogre::VertexDeclaration

Post by [nighthawk] » Tue Oct 24, 2017 7:53 pm

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?
0 x

Post Reply