libobs-opengl: Do not fail if shader param unused
I encountered a scenario where effects might reference shader parameters that may not potentially exist, this isn't particularly a bad thing that needs to return failure. It just needs to gracefully ignore it.
This commit is contained in:
@@ -560,9 +560,7 @@ static bool assign_program_param(struct gs_program *program,
|
||||
return false;
|
||||
|
||||
if (info.obj == -1) {
|
||||
blog(LOG_ERROR, "Program parameter '%s' not found",
|
||||
param->name);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
info.param = param;
|
||||
|
Reference in New Issue
Block a user