mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 21:13:02 +01:00
Reset glPixelStorei GL_UNPACK_ROW_LENGTH to 0 after texture upload, if it's been changed.
This commit is contained in:
@@ -3837,6 +3837,12 @@ namespace bgfx { namespace gl
|
||||
) );
|
||||
}
|
||||
|
||||
if (!convert
|
||||
&& unpackRowLength)
|
||||
{
|
||||
GL_CHECK(glPixelStorei(GL_UNPACK_ROW_LENGTH, 0) );
|
||||
}
|
||||
|
||||
if (NULL != temp)
|
||||
{
|
||||
BX_FREE(g_allocator, temp);
|
||||
|
||||
Reference in New Issue
Block a user