We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bc135f commit f82c351Copy full SHA for f82c351
Sources/Overload/OvRendering/src/OvRendering/HAL/OpenGL/GLTextureHandle.cpp
@@ -29,10 +29,12 @@ void OvRendering::HAL::GLTextureHandle::Bind(std::optional<uint32_t> p_slot) con
29
{
30
if (p_slot.has_value())
31
32
- glActiveTexture(GL_TEXTURE0 + p_slot.value());
+ glBindTextureUnit(p_slot.value(), m_context.id);
33
+ }
34
+ else
35
+ {
36
+ glBindTexture(m_context.type, m_context.id);
37
}
-
- glBindTexture(m_context.type, m_context.id);
38
39
40
template<>
0 commit comments