Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualimoogiBG

Posted 11 July 2013 - 05:33 AM

Sry... there is already an answer

DWORD shaderFlag;
        #if defined(DEBUG) || defined(_DEBUG)
        shaderFlag |= D3D10_SHADER_DEBUG;
        shaderFlag |= D3D10_SHADER_SKIP_OPTIMIZATION;
        #endif

at creation moment shaderFlag contains some random value. change line :

DWORD shaderFlag;

to : 

DWORD shaderFlag = 0;

#1imoogiBG

Posted 11 July 2013 - 05:32 AM

DWORD shaderFlag;
        #if defined(DEBUG) || defined(_DEBUG)
        shaderFlag |= D3D10_SHADER_DEBUG;
        shaderFlag |= D3D10_SHADER_SKIP_OPTIMIZATION;
        #endif

at creation moment shaderFlag contains some random value. change line :

DWORD shaderFlag;

to : 

DWORD shaderFlag = 0;

PARTNERS