فهرست منبع

Add RenderPassData::mSamplerNames for OpenGL code. Not used on DX9.

LuisAntonRebollo 11 سال پیش
والد
کامیت
0f9bc89f32
2فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 3 0
      Engine/source/materials/processedMaterial.cpp
  2. 1 0
      Engine/source/materials/processedMaterial.h

+ 3 - 0
Engine/source/materials/processedMaterial.cpp

@@ -41,7 +41,10 @@ RenderPassData::RenderPassData()
 void RenderPassData::reset()
 void RenderPassData::reset()
 {
 {
    for( U32 i = 0; i < Material::MAX_TEX_PER_PASS; ++ i )
    for( U32 i = 0; i < Material::MAX_TEX_PER_PASS; ++ i )
+   {
       destructInPlace( &mTexSlot[ i ] );
       destructInPlace( &mTexSlot[ i ] );
+      mSamplerNames[ i ].clear();
+   }
 
 
    dMemset( &mTexSlot, 0, sizeof(mTexSlot) );
    dMemset( &mTexSlot, 0, sizeof(mTexSlot) );
    dMemset( &mTexType, 0, sizeof(mTexType) );
    dMemset( &mTexType, 0, sizeof(mTexType) );

+ 1 - 0
Engine/source/materials/processedMaterial.h

@@ -68,6 +68,7 @@ public:
    } mTexSlot[Material::MAX_TEX_PER_PASS];
    } mTexSlot[Material::MAX_TEX_PER_PASS];
 
 
    U32 mTexType[Material::MAX_TEX_PER_PASS];
    U32 mTexType[Material::MAX_TEX_PER_PASS];
+   String mSamplerNames[Material::MAX_TEX_PER_PASS];
 
 
    /// The cubemap to use when the texture type is
    /// The cubemap to use when the texture type is
    /// set to Material::Cube.
    /// set to Material::Cube.