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);
|
MutexAutoLock lock(m_shaderinfo_cache_mutex);
|
||||||
|
|
||||||
#if IRRLICHT_VERSION_MT_REVISION >= 15
|
|
||||||
// Delete materials
|
// Delete materials
|
||||||
video::IGPUProgrammingServices *gpu = RenderingEngine::get_video_driver()->
|
video::IGPUProgrammingServices *gpu = RenderingEngine::get_video_driver()->
|
||||||
getGPUProgrammingServices();
|
getGPUProgrammingServices();
|
||||||
|
@ -377,7 +376,6 @@ ShaderSource::~ShaderSource()
|
||||||
gpu->deleteShaderMaterial(i.material);
|
gpu->deleteShaderMaterial(i.material);
|
||||||
}
|
}
|
||||||
m_shaderinfo_cache.clear();
|
m_shaderinfo_cache.clear();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 ShaderSource::getShader(const std::string &name,
|
u32 ShaderSource::getShader(const std::string &name,
|
||||||
|
@ -501,7 +499,6 @@ void ShaderSource::rebuildShaders()
|
||||||
{
|
{
|
||||||
MutexAutoLock lock(m_shaderinfo_cache_mutex);
|
MutexAutoLock lock(m_shaderinfo_cache_mutex);
|
||||||
|
|
||||||
#if IRRLICHT_VERSION_MT_REVISION >= 15
|
|
||||||
// Delete materials
|
// Delete materials
|
||||||
video::IGPUProgrammingServices *gpu = RenderingEngine::get_video_driver()->
|
video::IGPUProgrammingServices *gpu = RenderingEngine::get_video_driver()->
|
||||||
getGPUProgrammingServices();
|
getGPUProgrammingServices();
|
||||||
|
@ -511,7 +508,6 @@ void ShaderSource::rebuildShaders()
|
||||||
i.material = video::EMT_SOLID; // invalidate
|
i.material = video::EMT_SOLID; // invalidate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
// Recreate shaders
|
// Recreate shaders
|
||||||
for (ShaderInfo &i : m_shaderinfo_cache) {
|
for (ShaderInfo &i : m_shaderinfo_cache) {
|
||||||
|
|
Loading…
Reference in New Issue