MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ReleaseVideoPointer

Method ReleaseVideoPointer

src/video/win32_v.cpp:1567–1574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1565}
1566
1567void VideoDriver_Win32OpenGL::ReleaseVideoPointer()
1568{
1569 if (this->anim_buffer != nullptr) OpenGLBackend::Get()->ReleaseAnimBuffer(this->dirty_rect);
1570 OpenGLBackend::Get()->ReleaseVideoBuffer(this->dirty_rect);
1571 this->dirty_rect = {};
1572 _screen.dst_ptr = nullptr;
1573 this->anim_buffer = nullptr;
1574}
1575
1576void VideoDriver_Win32OpenGL::Paint()
1577{

Callers 4

StartMethod · 0.95
ToggleFullscreenMethod · 0.95
AllocateBackingStoreMethod · 0.95
UnlockVideoBufferMethod · 0.45

Calls 2

ReleaseAnimBufferMethod · 0.80
ReleaseVideoBufferMethod · 0.80

Tested by

no test coverage detected