| 55 | } |
| 56 | |
| 57 | void GL46TextureCube::LoadTextureLevel(uint32_t item, uint32_t level, void const* data) |
| 58 | { |
| 59 | auto texture = GetTexture(); |
| 60 | if (texture && level < texture->GetNumLevels()) |
| 61 | { |
| 62 | auto const width = texture->GetDimension(0); |
| 63 | auto const height = texture->GetDimension(1); |
| 64 | |
| 65 | // Each face in the TextureCube has a unique GL target. |
| 66 | GLenum targetFace = msCubeFaceTarget[item]; |
| 67 | |
| 68 | glTexSubImage2D(targetFace, level, 0, 0, width, height, |
| 69 | mExternalFormat, mExternalType, data); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 |
nothing calls this directly
no test coverage detected