From 6609403fbe739c52e7a6a83aaf7fd5495d6eebf5 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 9 Dec 2016 10:27:18 +0100 Subject: [PATCH] Fix null pointer crash in rt column drawers if rt_init is not called before the first draw --- src/r_thread.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/r_thread.h b/src/r_thread.h index 7962dfc20..e44d872c2 100644 --- a/src/r_thread.h +++ b/src/r_thread.h @@ -42,6 +42,12 @@ void R_EndDrawerCommands(); class DrawerThread { public: + DrawerThread() + { + dc_temp = dc_temp_buff; + dc_temp_rgba = dc_temp_rgbabuff_rgba; + } + std::thread thread; // Thread line index of this thread