1
0
forked from 0ad/0ad

Fixes crash in LOSTexture because of incorrect nullptr check introduced in 648e68e49c.

This was SVN commit r26923.
This commit is contained in:
Vladislav Belov 2022-06-06 21:21:52 +00:00
parent ffe4ea24ab
commit 24140bf620

View File

@ -82,9 +82,7 @@ CLOSTexture::~CLOSTexture()
bool CLOSTexture::CreateShader()
{
m_SmoothTech = g_Renderer.GetShaderManager().LoadEffect(str_los_interp);
Renderer::Backend::IShaderProgram* shader = m_SmoothTech->GetShader();
m_ShaderInitialized = m_SmoothTech && shader;
m_ShaderInitialized = m_SmoothTech && m_SmoothTech->GetShader();
if (!m_ShaderInitialized)
{