mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
GLES: Load default shader if we try to load user shader to avoid crash
This commit is contained in:
parent
4530a7b583
commit
54ad3433b1
1 changed files with 4 additions and 1 deletions
|
@ -480,7 +480,10 @@ public:
|
||||||
{
|
{
|
||||||
return mMaterialShaders[eff];
|
return mMaterialShaders[eff];
|
||||||
}
|
}
|
||||||
return NULL;
|
else // This can happen if we try and active a user shader which is not loaded, so return default shader so it does not crash
|
||||||
|
{
|
||||||
|
return mMaterialShaders[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue