mirror of
https://github.com/luanti-org/luanti.git
synced 2026-01-12 04:05:26 +01:00
Introduce EMT_INVALID as safe placeholder
This commit is contained in:
@@ -640,7 +640,7 @@ void ShaderSource::rebuildShaders()
|
||||
for (ShaderInfo &i : m_shaderinfo_cache) {
|
||||
if (!i.name.empty()) {
|
||||
gpu->deleteShaderMaterial(i.material);
|
||||
i.material = video::EMT_SOLID; // invalidate
|
||||
i.material = video::EMT_INVALID;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user