mirror of https://github.com/minetest/minetest.git
Update shader.cpp
Remove version checks I'm still not sure how these ended up being here to begin with, they didn't even show up in VS, but I removed them.
This commit is contained in:
parent
25060fe9d6
commit
38ca11f933
|
@ -368,7 +368,6 @@ ShaderSource::~ShaderSource()
|
|||
{
|
||||
MutexAutoLock lock(m_shaderinfo_cache_mutex);
|
||||
|
||||
#if IRRLICHT_VERSION_MT_REVISION >= 15
|
||||
// Delete materials
|
||||
video::IGPUProgrammingServices *gpu = RenderingEngine::get_video_driver()->
|
||||
getGPUProgrammingServices();
|
||||
|
@ -377,7 +376,6 @@ ShaderSource::~ShaderSource()
|
|||
gpu->deleteShaderMaterial(i.material);
|
||||
}
|
||||
m_shaderinfo_cache.clear();
|
||||
#endif
|
||||
}
|
||||
|
||||
u32 ShaderSource::getShader(const std::string &name,
|
||||
|
@ -501,7 +499,6 @@ void ShaderSource::rebuildShaders()
|
|||
{
|
||||
MutexAutoLock lock(m_shaderinfo_cache_mutex);
|
||||
|
||||
#if IRRLICHT_VERSION_MT_REVISION >= 15
|
||||
// Delete materials
|
||||
video::IGPUProgrammingServices *gpu = RenderingEngine::get_video_driver()->
|
||||
getGPUProgrammingServices();
|
||||
|
@ -511,7 +508,6 @@ void ShaderSource::rebuildShaders()
|
|||
i.material = video::EMT_SOLID; // invalidate
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Recreate shaders
|
||||
for (ShaderInfo &i : m_shaderinfo_cache) {
|
||||
|
|
Loading…
Reference in New Issue