1. Steve Streeting
  2. ogre

Commits

dark_sylinc  committed 525dfa7

D3D9: HLSL Paramters weren't being cleared when unloading the High level microcode. As a result, if the the shader got later recompiled & reloaded, the parameters indices could end up being different, and the mapping would be wrong.

  • Participants
  • Parent commits dd3c04e
  • Branches v1-8

Comments (0)

Files changed (1)

File RenderSystems/Direct3D9/src/OgreD3D9HLSLProgram.cpp

View file
     //-----------------------------------------------------------------------
     void D3D9HLSLProgram::unloadHighLevelImpl(void)
     {
+        mParametersMap.clear();
+        mParametersMapSizeAsBuffer = 0;
         SAFE_RELEASE(mMicroCode);
-
     }
     //-----------------------------------------------------------------------
     void D3D9HLSLProgram::buildConstantDefinitions() const