if( bufSize < 80 )
return PICO_PMV_ERROR_SIZE;
- /* keep the friggin compiler happy */
- *fileName = *fileName;
-
/* create pico parser */
- p = _pico_new_parser( (picoByte_t*) buffer, bufSize );
+ p = _pico_new_parser( (const picoByte_t*) buffer, bufSize );
if( p == NULL )
return PICO_PMV_ERROR_MEMORY;
return NULL; \
}
/* create a new pico parser */
- p = _pico_new_parser( (picoByte_t *)buffer,bufSize );
+ p = _pico_new_parser( (const picoByte_t *)buffer,bufSize );
if (p == NULL) return NULL;
/* create a new pico model */
else if( !_pico_stricmp( p->token, "*material" ) )
{
aseSubMaterial_t* subMaterial = NULL;
- picoShader_t *shader;
+ picoShader_t *shader = NULL;
int level = 1, index;
char materialName[ 1024 ];
float transValue = 0.0f, shineValue = 1.0f;