Loading v1 billboardset calling setMaterialName() causes call of frameEnded() inside VaoManager if required #33 issue

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Hotshot5000
OGRE Contributor
OGRE Contributor
Posts: 256
Joined: Thu Oct 14, 2010 12:30 pm
x 64

Loading v1 billboardset calling setMaterialName() causes call of frameEnded() inside VaoManager if required #33 issue

Post by Hotshot5000 »

Since v1:BillboardSet runs createBuffer() during frame rendering and it calls setMaterialName() which loads the material if not already loaded then you end up in the https://github.com/OGRECave/ogre-next/issues/33 situation where VaoManager::update(); gets called when it shouldn't be.

The solution, of course, was to preload the v1 materials and force the load().

I should probably move away from v1 materials and other v1 stuff...