mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
gs-effect: Check if effect is nullptr, not if its a valid ptr
Woops, that somehow went completely by me without checking.
This commit is contained in:
parent
7b0159947e
commit
c6559d84ba
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ std::shared_ptr<gs::effect> gs::effect::create(std::string code, std::string nam
|
|||
gs::effect_parameter::effect_parameter(std::shared_ptr<gs::effect> effect, gs_eparam_t* param)
|
||||
: _effect(effect), _param(param)
|
||||
{
|
||||
if (effect)
|
||||
if (!effect)
|
||||
throw std::invalid_argument("effect");
|
||||
if (!param)
|
||||
throw std::invalid_argument("param");
|
||||
|
|
Loading…
Reference in a new issue