Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HRESULT STDMETHODCALLTYPE EndScene(IDirect3DDevice9 *device)
- {
- d3d9EndScene.Unhook();
- if (ren == nullptr)
- {
- ren = new D3D9Renderer(device);
- ren->InitObjects();
- }
- if (ren->Begin())
- {
- DoMenu(ren);
- ren->End();
- }
- HRESULT hr = device->EndScene();
- d3d9EndScene.Rehook();
- return hr;
- }
- HRESULT STDMETHODCALLTYPE Reset(IDirect3DDevice9 *device, D3DPRESENT_PARAMETERS *params)
- {
- d3d9Reset.Unhook();
- if (ren)
- {
- delete ren;
- ren = nullptr;
- }
- HRESULT hr = device->Reset(params);
- d3d9Reset.Rehook();
- return hr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement