Skip to content

Commit

Permalink
Return statements for effectFind functions
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed May 29, 2019
1 parent 35aa7e3 commit 9b90bf8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mojoshader_effects.c
Expand Up @@ -241,6 +241,7 @@ static int findparameter(const MOJOSHADER_effectParam *params,
if (strcmp(name, params[i].value.name) == 0)
return i;
assert(0 && "Parameter not found!");
return -1;
}

static void readvalue(const uint8 *base,
Expand Down Expand Up @@ -1724,6 +1725,7 @@ const MOJOSHADER_effectTechnique *MOJOSHADER_effectFindNextValidTechnique(const
} // if
} // for
assert(0 && "Technique is not part of this effect!");
return NULL;
} // MOJOSHADER_effectFindNextValidTechnique

#endif // MOJOSHADER_EFFECT_SUPPORT
Expand Down

0 comments on commit 9b90bf8

Please sign in to comment.