GPU: Correct Draw2D::DeviceRestore().

This commit is contained in:
Unknown W. Brackets 2022-08-23 20:07:53 -07:00
parent fc81b76b98
commit 47b7305bf5

View File

@ -144,10 +144,11 @@ void Draw2D::DeviceLost() {
DoRelease(draw2DVs_); DoRelease(draw2DVs_);
DoRelease(draw2DSamplerLinear_); DoRelease(draw2DSamplerLinear_);
DoRelease(draw2DSamplerNearest_); DoRelease(draw2DSamplerNearest_);
draw_ = nullptr;
} }
void Draw2D::DeviceRestore(Draw::DrawContext *draw) { void Draw2D::DeviceRestore(Draw::DrawContext *draw) {
draw_ = draw;
} }
void Draw2D::Ensure2DResources() { void Draw2D::Ensure2DResources() {