diff --git a/Sources/Overload/OvRendering/src/OvRendering/HAL/OpenGL/GLTextureHandle.cpp b/Sources/Overload/OvRendering/src/OvRendering/HAL/OpenGL/GLTextureHandle.cpp index 4180f503..122a1482 100644 --- a/Sources/Overload/OvRendering/src/OvRendering/HAL/OpenGL/GLTextureHandle.cpp +++ b/Sources/Overload/OvRendering/src/OvRendering/HAL/OpenGL/GLTextureHandle.cpp @@ -29,10 +29,12 @@ void OvRendering::HAL::GLTextureHandle::Bind(std::optional p_slot) con { if (p_slot.has_value()) { - glActiveTexture(GL_TEXTURE0 + p_slot.value()); + glBindTextureUnit(p_slot.value(), m_context.id); + } + else + { + glBindTexture(m_context.type, m_context.id); } - - glBindTexture(m_context.type, m_context.id); } template<>