Fix reloading texture with threads

This commit is contained in:
Benau
2017-03-15 10:44:02 +08:00
parent 6b0610af50
commit f920ed7f97

View File

@@ -274,7 +274,7 @@ void STKTexture::reload(bool no_upload, uint8_t* preload_data,
GL_UNSIGNED_BYTE, data);
}
}
else
else if (!useThreadedLoading())
{
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, w, h, format,
GL_UNSIGNED_BYTE, data);