mojoshader_opengl.c
changeset 1063 b10281d6eb45
parent 1060 4cdf5a3ceb03
child 1066 ff14db741834
equal deleted inserted replaced
1062:ea5c89942bd3 1063:b10281d6eb45
  1427                 largest = val;
  1427                 largest = val;
  1428         } // for
  1428         } // for
  1429 
  1429 
  1430         if (largest > 0)
  1430         if (largest > 0)
  1431         {
  1431         {
  1432             const size_t len = largest * sizeof (GLfloat);
  1432             const size_t len = largest * sizeof (GLfloat) * 4;
  1433             GLfloat *buf = (GLfloat *) Malloc(len);
  1433             GLfloat *buf = (GLfloat *) Malloc(len);
  1434             if (buf == NULL)
  1434             if (buf == NULL)
  1435                 return 0;
  1435                 return 0;
  1436             memset(buf, '\0', len);
  1436             memset(buf, '\0', len);
  1437 
  1437