Skip to content

Commit

Permalink
Fix headless compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Dec 16, 2021
1 parent 49d0184 commit 3ef8392
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rts/Rendering/Fonts/glFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ void CglFont::SetAutoOutlineColor(bool enable) {}
void CglFont::SetTextColor(const float4* color) {}
void CglFont::SetOutlineColor(const float4* color) {}
void CglFont::SetColors(const float4* textColor, const float4* outlineColor) {}
void CglFont::CreateDefaultShader() {}

float CglFont::GetCharacterWidth(const char32_t c) { return 1.0f; }
float CglFont::GetTextWidth_(const std::u8string& text) { return (text.size() * 1.0f); }
Expand Down
1 change: 1 addition & 0 deletions rts/lib/headlessStubs/glewstub.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ extern "C" {
#define GLEW_ARB_multi_draw_indirect GL_FALSE
#define GLEW_ARB_sync GL_FALSE
#define GLEW_ARB_timer_query GL_FALSE
#define GLEW_ARB_explicit_attrib_location GL_FALSE

#define GLXEW_SGI_video_sync GL_FALSE

Expand Down

0 comments on commit 3ef8392

Please sign in to comment.