Ticket #2862: fix-2862-valgrind-CLOSTexture-dtor.patch

File fix-2862-valgrind-CLOSTexture-dtor.patch, 760 bytes (added by Echelon9, 10 years ago)

Proposed patch

  • source/graphics/LOSTexture.cpp

     
    5858static const size_t g_SubTextureAlignment = 4;
    5959
    6060CLOSTexture::CLOSTexture(CSimulation2& simulation) :
    61     m_Simulation(simulation), m_Dirty(true), m_ShaderInitialized(false), m_Texture(0), m_smoothFbo(0), m_MapSize(0), m_TextureSize(0), whichTex(true)
     61    m_Simulation(simulation), m_Dirty(true), m_ShaderInitialized(false), m_Texture(0), m_TextureSmooth1(0), m_TextureSmooth2(0), m_smoothFbo(0), m_MapSize(0), m_TextureSize(0), whichTex(true)
    6262{
    6363    if (CRenderer::IsInitialised() && g_Renderer.m_Options.m_SmoothLOS)
    6464        CreateShader();