| 221 | } |
| 222 | |
| 223 | void Graphics::EndFrame() |
| 224 | { |
| 225 | if (auto hr = pContext2d->EndDraw(); FAILED(hr)) |
| 226 | { |
| 227 | pmlog_error().hr(hr); |
| 228 | } |
| 229 | |
| 230 | fastRenderer->EndFrame(*pContext3d); |
| 231 | |
| 232 | { |
| 233 | const UINT interval = tearingActive ? 0 : 1; |
| 234 | const UINT flags = tearingActive ? DXGI_PRESENT_ALLOW_TEARING : 0; |
| 235 | pmlog_hr << pSwapChain->Present(interval, flags); |
| 236 | } |
| 237 | |
| 238 | fastRenderer->ResizeGeometryBuffersIfNecessary(*pDevice); |
| 239 | } |
| 240 | |
| 241 | const DimensionsI& Graphics::GetDimensions() const |
| 242 | { |
no test coverage detected