It fixes compilation errors in some systems.
This commit is contained in:
parent
fd3cd64c35
commit
e378a87134
|
|
@ -733,8 +733,10 @@ void _pico_deduce_shadername( const char* fileName, const char* srcName, picoSha
|
|||
}
|
||||
|
||||
/* deduce shadernames from bitmap or shadername paths */
|
||||
void _pico_deduce_shadernames( picoModel_t *model ){
|
||||
for ( int i = 0; i < model->numShaders; ++i ){
|
||||
void _pico_deduce_shadernames( picoModel_t *model )
|
||||
{
|
||||
int i;
|
||||
for ( i = 0; i < model->numShaders; ++i ){
|
||||
/* skip null shaders */
|
||||
if ( model->shader[i] == NULL )
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -493,13 +493,15 @@ void PicoFreeShader( picoShader_t *shader ){
|
|||
*/
|
||||
|
||||
picoShader_t *PicoFindShader( picoModel_t *model, char *name, int caseSensitive ){
|
||||
int i;
|
||||
|
||||
/* sanity checks */
|
||||
if ( model == NULL || name == NULL ) { /* sea: null name fix */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* walk list */
|
||||
for ( int i = 0; i < model->numShaders; i++ )
|
||||
for ( i = 0; i < model->numShaders; i++ )
|
||||
{
|
||||
/* skip null shaders or shaders with null names */
|
||||
if ( model->shader[ i ] == NULL ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user