MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / Unbind

Method Unbind

ZEngine/src/Texture2D.cpp:124–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected