
39. Th e ANGLE Project: Implementing OpenGL ES 2 .0 on Direct3D 563
the ANGLE side, this can be achieved with appropriate use of a fence or by calling
glFinish to ensure that the desired operations have finished.
39.3.12 Context Loss
Direct3D 9 devices can, under various scenarios, become “lost” [MSDN 11e]. On
Windows XP, this can happen when the system has a power management event such
as entering sleep mode, or screen saver activation. On Window Vista and later, when
using Direct3D 9Ex, device loss is much more infrequent but can still happen if the
hardware hangs or when the driver is stopped [MSDN 11d]. When the device is
lost, resources that were ...