diff --git a/src/hwrenderer/scene/hw_bsp.cpp b/src/hwrenderer/scene/hw_bsp.cpp index dcd3af3bb..75be620f4 100644 --- a/src/hwrenderer/scene/hw_bsp.cpp +++ b/src/hwrenderer/scene/hw_bsp.cpp @@ -40,6 +40,7 @@ #include "hwrenderer/scene/hw_portal.h" #include "hwrenderer/utility/hw_clock.h" #include "hwrenderer/data/flatvertices.h" +#include CVAR(Bool, gl_multithread, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG) @@ -67,8 +68,8 @@ struct RenderJob class RenderJobQueue { RenderJob pool[300000]; // Way more than ever needed. The largest ever seen on a single viewpoint is around 40000. - std::atomic readindex; - std::atomic writeindex; + std::atomic readindex{}; + std::atomic writeindex{}; public: void AddJob(int type, subsector_t *sub, seg_t *seg = nullptr) {