Fixes crash in LOSTexture because of incorrect nullptr check introduced in 648e68e49c
.
This was SVN commit r26923.
This commit is contained in:
parent
ffe4ea24ab
commit
24140bf620
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user