Advanced
Repaint after the GPU is lost
A picture is painted once into a render target and shown on a plane. After a lost and restored context the plane turns black.
Add one listener so the picture comes back after a restore.
What Check tests
- The picture is orange before the loss
- The context is lost and restored
- The picture is orange again
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.