[2.1] setEmissive crash

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] setEmissive crash

Post by Jay721 » Thu Mar 07, 2019 7:20 pm

My application changes the emissiveness of a datablock quite frequently.
In release mode, Ogre seems to crash on occasion when calling setEmissive.

This is all I get from the logs:

Code: Select all

OGRE EXCEPTION(-2147467259:RenderingAPIException): Cannot compile D3D11 high-level shader 100000005PixelShader_ps Errors:
\100000005PixelShader_ps.hlsl(1,1): error X3000: syntax error: unexpected token '@'
 in D3D11HLSLProgram::compileMicrocode at \Ogre\ogre\RenderSystems\Direct3D11\src\OgreD3D11HLSLProgram.cpp (line 569)

Code: Select all

High-level program 100000005PixelShader_ps encountered an error during loading and is thus not supported
Any idea what I'm doing wrong?
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 4075
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 230
Contact:

Re: [2.1] setEmissive crash

Post by dark_sylinc » Thu Mar 07, 2019 7:50 pm

Could you upload 100000005PixelShader_ps.hlsl?
0 x

Jay721
Halfling
Posts: 62
Joined: Mon Jan 29, 2018 8:19 am

Re: [2.1] setEmissive crash

Post by Jay721 » Sun Mar 10, 2019 12:05 am

Sure, this should be it:

https://pastebin.com/hesCM9xX
0 x

Post Reply