| 122 | } |
| 123 | |
| 124 | void Texture2D::Unbind(int slot) const { |
| 125 | #ifdef _WIN32 |
| 126 | glBindTextureUnit(slot, 0); |
| 127 | #else |
| 128 | glActiveTexture(GL_TEXTURE0 + slot); |
| 129 | glBindTexture(GL_TEXTURE_2D, 0); |
| 130 | #endif |
| 131 | } |
| 132 | |
| 133 | } // namespace ZEngine::Rendering::Textures |
nothing calls this directly
no outgoing calls
no test coverage detected