| 1897 | } |
| 1898 | |
| 1899 | TextureRef Textures::getDetailColorArray() { |
| 1900 | PROFILED_TEXTURE_MUTEX_LOCK |
| 1901 | if (!detail_color_texture_ref.valid()) { |
| 1902 | setWrap(GL_REPEAT, GL_REPEAT); |
| 1903 | unsigned int t = makeArrayTextureInternal(0, PX_SRGB); |
| 1904 | PROFILED_TEXTURE_MUTEX_UNLOCK |
| 1905 | detail_color_texture_ref = TextureRef(t); |
| 1906 | DecrementRefCount(t); |
| 1907 | SetTextureName(detail_color_texture_ref, "Detail Texture Array - Color"); |
| 1908 | } else { |
| 1909 | PROFILED_TEXTURE_MUTEX_UNLOCK |
| 1910 | } |
| 1911 | |
| 1912 | return detail_color_texture_ref; |
| 1913 | } |
| 1914 | |
| 1915 | TextureRef Textures::getDetailNormalArray() { |
| 1916 | PROFILED_TEXTURE_MUTEX_LOCK |
no test coverage detected