Skip to content
Permalink
Browse files
Return statements for effectFind functions
  • Loading branch information
flibitijibibo committed May 29, 2019
1 parent 35aa7e3 commit 9b90bf8efc01f54dadb65ebcfd33608b23e1343d

File 1 of 1 in 9b90bf8

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

0 comments on commit 9b90bf8

Please sign in to comment.