mojoshader_opengl.c
changeset 1104 9147482e1ec7
parent 1090 636ffcd3f14a
child 1105 57e255c3b243
equal deleted inserted replaced
1103:8b7c29c019d5 1104:9147482e1ec7
  1390 
  1390 
  1391 
  1391 
  1392 MOJOSHADER_glShader *MOJOSHADER_glCompileShader(const unsigned char *tokenbuf,
  1392 MOJOSHADER_glShader *MOJOSHADER_glCompileShader(const unsigned char *tokenbuf,
  1393                                                 const unsigned int bufsize,
  1393                                                 const unsigned int bufsize,
  1394                                                 const MOJOSHADER_swizzle *swiz,
  1394                                                 const MOJOSHADER_swizzle *swiz,
  1395                                                 const unsigned int swizcount)
  1395                                                 const unsigned int swizcount,
       
  1396                                                 const MOJOSHADER_samplerMap *smap,
       
  1397                                                 const unsigned int smapcount)
  1396 {
  1398 {
  1397     MOJOSHADER_glShader *retval = NULL;
  1399     MOJOSHADER_glShader *retval = NULL;
  1398     GLuint shader = 0;
  1400     GLuint shader = 0;
  1399     const MOJOSHADER_parseData *pd = MOJOSHADER_parse(ctx->profile, tokenbuf,
  1401     const MOJOSHADER_parseData *pd = MOJOSHADER_parse(ctx->profile, tokenbuf,
  1400                                                       bufsize, swiz, swizcount,
  1402                                                       bufsize, swiz, swizcount,
       
  1403                                                       smap, smapcount,
  1401                                                       ctx->malloc_fn,
  1404                                                       ctx->malloc_fn,
  1402                                                       ctx->free_fn,
  1405                                                       ctx->free_fn,
  1403                                                       ctx->malloc_data);
  1406                                                       ctx->malloc_data);
  1404     if (pd->error_count > 0)
  1407     if (pd->error_count > 0)
  1405     {
  1408     {