GLES: Refresh the draw context in DrawEngineGLES on DeviceRestore. How did we miss this?

This commit is contained in:
Henrik Rydgård 2018-05-27 22:19:03 +02:00
parent 343763cf5a
commit 0d6be3a476
3 changed files with 4 additions and 3 deletions

View File

@ -103,7 +103,8 @@ void DrawEngineGLES::DeviceLost() {
DestroyDeviceObjects();
}
void DrawEngineGLES::DeviceRestore() {
void DrawEngineGLES::DeviceRestore(Draw::DrawContext *draw) {
draw_ = draw;
InitDeviceObjects();
}

View File

@ -130,7 +130,7 @@ public:
}
void DeviceLost();
void DeviceRestore();
void DeviceRestore(Draw::DrawContext *draw);
void ClearTrackedVertexArrays() override;
void DecimateTrackedVertexArrays();

View File

@ -351,7 +351,7 @@ void GPU_GLES::DeviceRestore() {
textureCacheGL_->DeviceRestore(draw_);
framebufferManagerGL_->DeviceRestore(draw_);
drawEngine_.DeviceRestore();
drawEngine_.DeviceRestore(draw_);
}
void GPU_GLES::Reinitialize() {