[2.1] Release program crashes when making object transparent.

Discussion area about developing with Ogre2 branches (2.1, 2.2 and beyond)
Post Reply
Jay721
Halfling
Posts: 62
Joined: Mon Jan 29, 2018 8:19 am

[2.1] Release program crashes when making object transparent.

Post by Jay721 » Mon Feb 18, 2019 5:47 pm

Hi guys.

My program is working fine in debug builds. However, when I switch over to release my program throws an exception when this isn't commented:

Code: Select all

block->setTransparency(0.5f, Ogre::HlmsPbsDatablock::TransparencyModes::Fade); 
What could I have done wrong? I don't get any other error apart from:

Code: Select all

Exception thrown at 0x0F429CB7 (OgreMain.dll) in test.exe: 0xC0000005: Access violation reading location 0x0B161FF8.
Thanks in advance.
0 x

hyyou
Gremlin
Posts: 164
Joined: Wed Feb 03, 2016 2:24 am
x 5
Contact:

Re: [2.1] Release program crashes when making object transparent.

Post by hyyou » Sun Feb 24, 2019 3:07 am

It is probably because configuration/setting file is different (printing cout in various location of your code can help).
Strangely, sometimes, I upgraded Ogre and it fixes that issue.
0 x

Post Reply