Add in forced flush after texture prepare on GL. Closes #1799

* On some GPUs (ARM Mali in particular it seems) when postponed resources are
  prepared then immediately serialised the readback doesn't get the correct
  data.
This commit is contained in:
baldurk
2020-03-30 15:13:50 +01:00
parent 3bdccf37e6
commit 606ab1ad32
+3
View File
@@ -891,6 +891,9 @@ void GLResourceManager::PrepareTextureInitialContents(ResourceId liveid, Resourc
}
}
GL.glFlush();
GL.glFinish();
if(avoidCopySubImage)
{
pack.Apply(false);