Skip to content

Commit

Permalink
fix: linker error when compiling headless
Browse files Browse the repository at this point in the history
bool bSquareOnly is used in mload.c, but not
declared when compiling with RENDER_DISABLED=1
  • Loading branch information
AstralShadow committed Oct 2, 2022
1 parent 65d7ddc commit 077858c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions render_disabled.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ float render_lighting_env_water_green = 0.0f;
float render_lighting_env_water_blue = 0.0f;
int render_lighting_env_whiteout = 0;

bool bSquareOnly = true;

const char * render_error_description( int e ) { return NULL; }

#endif // RENDER_DISABLED

0 comments on commit 077858c

Please sign in to comment.