Merge pull request #381 from jpcy/reset_unpack_row_length
Reset glPixelStorei GL_UNPACK_ROW_LENGTH to 0 after texture upload
This commit is contained in:
commit
32ce3ec84d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user