Skip to content

Commit

Permalink
Don't compile in the LuaOpenGL::ClearBuffer implementation for HEADLESS.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurtron committed Dec 9, 2024
1 parent d45ba84 commit e7dfb3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rts/Lua/LuaOpenGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4161,6 +4161,7 @@ namespace Impl {

int LuaOpenGL::ClearBuffer(lua_State* L)
{
#ifndef HEADLESS
CheckDrawingEnabled(L, __func__);

GLenum bufferType;
Expand Down Expand Up @@ -4221,6 +4222,7 @@ int LuaOpenGL::ClearBuffer(lua_State* L)
break;
}

#endif // HEADLESS
return 0;
}

Expand Down

0 comments on commit e7dfb3c

Please sign in to comment.