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.
master
jp9000 2015-03-08 19:39:09 -07:00
parent 2fa37a1f2e
commit 86e56a5c4e
1 changed files with 1 additions and 3 deletions

View File

@ -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;