|Microsoft DirectX 9.0|
Ends a scene that was begun by calling the IDirect3DDevice9::BeginScene method.
If the method succeeds, the return value is D3D_OK.
D3DERR_INVALIDCALL The method failed because EndScene was called before BeginScene.
When this method succeeds, the scene has been queued up for rendering by the driver. This is not a synchronous method, so the scene is not guaranteed to have completed rendering when this method returns.
When scene rendering begins successfully, you must call this method before you can call the IDirect3DDevice9::BeginScene method to start rendering another scene. If a prior call to IDirect3DDevice9::BeginScene method fails, the scene did not begin and this method should not be called.