=================== R_LoadImageProgram =================== */
| 610 | =================== |
| 611 | */ |
| 612 | void R_LoadImageProgram( const char *name, byte **pic, int *width, int *height, ID_TIME_T *timestamps, textureDepth_t *depth ) { |
| 613 | idLexer src; |
| 614 | |
| 615 | src.LoadMemory( name, strlen(name), name ); |
| 616 | src.SetFlags( LEXFL_NOFATALERRORS | LEXFL_NOSTRINGCONCAT | LEXFL_NOSTRINGESCAPECHARS | LEXFL_ALLOWPATHNAMES ); |
| 617 | |
| 618 | parseBuffer[0] = 0; |
| 619 | if ( timestamps ) { |
| 620 | *timestamps = 0; |
| 621 | } |
| 622 | |
| 623 | R_ParseImageProgram_r( src, pic, width, height, timestamps, depth ); |
| 624 | |
| 625 | src.FreeSource(); |
| 626 | } |
| 627 | |
| 628 | /* |
| 629 | =================== |
no test coverage detected