OpenGLDevice: Set unpack row length on create

This commit is contained in:
Stenzek
2023-09-23 12:54:37 +10:00
parent 2067b660f6
commit 6d18863d65
2 changed files with 25 additions and 7 deletions

View File

@ -267,9 +267,15 @@ public:
DebugAssert((m_position + used_size) <= m_size);
if (!m_coherent)
{
// TODO: shouldn't be needed anymore
Bind();
glFlushMappedBufferRange(m_target, m_position, used_size);
if (GLAD_GL_VERSION_4_5 || GLAD_GL_ARB_direct_state_access)
{
glFlushMappedNamedBufferRange(m_buffer_id, m_position, used_size);
}
else
{
Bind();
glFlushMappedBufferRange(m_target, m_position, used_size);
}
}
const u32 prev_position = m_position;