| 1913 | } |
| 1914 | |
| 1915 | TextureRef Textures::getDetailNormalArray() { |
| 1916 | PROFILED_TEXTURE_MUTEX_LOCK |
| 1917 | if (!detail_normal_texture_ref.valid()) { |
| 1918 | setWrap(GL_REPEAT, GL_REPEAT); |
| 1919 | unsigned int t = makeArrayTextureInternal(0, 0); |
| 1920 | PROFILED_TEXTURE_MUTEX_UNLOCK |
| 1921 | detail_normal_texture_ref = TextureRef(t); |
| 1922 | DecrementRefCount(t); |
| 1923 | SetTextureName(detail_normal_texture_ref, "Detail Texture Array - Normals"); |
| 1924 | } else { |
| 1925 | PROFILED_TEXTURE_MUTEX_UNLOCK |
| 1926 | } |
| 1927 | |
| 1928 | return detail_normal_texture_ref; |
| 1929 | } |
| 1930 | |
| 1931 | TextureRef Textures::makeArrayTexture(unsigned int num_slices, unsigned char flags) { |
| 1932 | PROFILED_TEXTURE_MUTEX_LOCK |
no test coverage detected