From e7dfb3c9238f699c60bd084158de5d52fffc3860 Mon Sep 17 00:00:00 2001 From: Saurtron Date: Mon, 9 Dec 2024 21:40:08 +0100 Subject: [PATCH] Don't compile in the LuaOpenGL::ClearBuffer implementation for HEADLESS. --- rts/Lua/LuaOpenGL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rts/Lua/LuaOpenGL.cpp b/rts/Lua/LuaOpenGL.cpp index f8a8409e23..37be43562f 100644 --- a/rts/Lua/LuaOpenGL.cpp +++ b/rts/Lua/LuaOpenGL.cpp @@ -4161,6 +4161,7 @@ namespace Impl { int LuaOpenGL::ClearBuffer(lua_State* L) { +#ifndef HEADLESS CheckDrawingEnabled(L, __func__); GLenum bufferType; @@ -4221,6 +4222,7 @@ int LuaOpenGL::ClearBuffer(lua_State* L) break; } +#endif // HEADLESS return 0; }