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

Method ClearCursorCache

src/video/opengl.cpp:1135–1142  ·  view source on GitHub ↗

* Queue a request for cursor cache clear. */

Source from the content-addressed store, hash-verified

1133 * Queue a request for cursor cache clear.
1134 */
1135void OpenGLBackend::ClearCursorCache()
1136{
1137 /* If the game loop is threaded, this function might be called
1138 * from the game thread. As we can call OpenGL functions only
1139 * on the main thread, just set a flag that is handled the next
1140 * time we prepare the cursor cache for drawing. */
1141 this->clear_cursor_cache = true;
1142}
1143
1144/**
1145 * Get a pointer to the memory for the video driver to draw to.

Callers 2

ClearSystemSpritesMethod · 0.80
ClearSystemSpritesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected