| 1561 | } |
| 1562 | |
| 1563 | static void compressedTexImage( |
| 1564 | GLenum _target |
| 1565 | , GLint _level |
| 1566 | , GLenum _internalformat |
| 1567 | , GLsizei _width |
| 1568 | , GLsizei _height |
| 1569 | , GLsizei _depth |
| 1570 | , GLint _border |
| 1571 | , GLsizei _imageSize |
| 1572 | , const GLvoid* _data |
| 1573 | ) |
| 1574 | { |
| 1575 | if (_target == GL_TEXTURE_3D) |
| 1576 | { |
| 1577 | glCompressedTexImage3D( |
| 1578 | _target |
| 1579 | , _level |
| 1580 | , _internalformat |
| 1581 | , _width |
| 1582 | , _height |
| 1583 | , _depth |
| 1584 | , _border |
| 1585 | , _imageSize |
| 1586 | , _data |
| 1587 | ); |
| 1588 | } |
| 1589 | else if (_target == GL_TEXTURE_2D_ARRAY |
| 1590 | || _target == GL_TEXTURE_CUBE_MAP_ARRAY) |
| 1591 | { |
| 1592 | compressedTexSubImage( |
| 1593 | _target |
| 1594 | , _level |
| 1595 | , 0 |
| 1596 | , 0 |
| 1597 | , _depth |
| 1598 | , _width |
| 1599 | , _height |
| 1600 | , 1 |
| 1601 | , _internalformat |
| 1602 | , _imageSize |
| 1603 | , _data |
| 1604 | ); |
| 1605 | } |
| 1606 | else if (_target == GL_TEXTURE_2D_MULTISAMPLE_ARRAY) |
| 1607 | { |
| 1608 | } |
| 1609 | else |
| 1610 | { |
| 1611 | BX_UNUSED(_depth); |
| 1612 | glCompressedTexImage2D( |
| 1613 | _target |
| 1614 | , _level |
| 1615 | , _internalformat |
| 1616 | , _width |
| 1617 | , _height |
| 1618 | , _border |
| 1619 | , _imageSize |
| 1620 | , _data |
no test coverage detected