Page 1 of 1

[2.1] setEmissive crash

Posted: Thu Mar 07, 2019 7:20 pm
by Jay721
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?

Re: [2.1] setEmissive crash

Posted: Thu Mar 07, 2019 7:50 pm
by dark_sylinc
Could you upload 100000005PixelShader_ps.hlsl?

Re: [2.1] setEmissive crash

Posted: Sun Mar 10, 2019 12:05 am
by Jay721
Sure, this should be it:

https://pastebin.com/hesCM9xX