| 1919 | } |
| 1920 | |
| 1921 | void ilFreeImageDxtcData() |
| 1922 | { |
| 1923 | ILint i, j; |
| 1924 | ILuint ImgID = ilGetInteger(IL_CUR_IMAGE); |
| 1925 | ILint ImgCount = ilGetInteger(IL_NUM_IMAGES); |
| 1926 | ILint MipCount; |
| 1927 | |
| 1928 | for(i = 0; i <= ImgCount; ++i) { |
| 1929 | ilBindImage(ImgID); |
| 1930 | ilActiveImage(i); |
| 1931 | |
| 1932 | MipCount = ilGetInteger(IL_NUM_MIPMAPS); |
| 1933 | for(j = 0; j <= MipCount; ++j) { |
| 1934 | ilBindImage(ImgID); |
| 1935 | ilActiveImage(i); |
| 1936 | ilActiveMipmap(j); |
| 1937 | |
| 1938 | ilFreeSurfaceDxtcData(); |
| 1939 | } |
| 1940 | } |
| 1941 | } |
| 1942 | |
| 1943 | /* |
| 1944 | * This assumes DxtcData, DxtcFormat, width, height, and depth are valid |
nothing calls this directly
no test coverage detected