Skip to content

Commit 2bff32d

Browse files
committed
Remove redundant second copy of stb_image_write
- implement stb_image_write in common lib
1 parent dbe31b9 commit 2bff32d

3 files changed

Lines changed: 1 addition & 1727 deletions

File tree

bsputil/bsputil.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,7 @@ struct planelist_t
819819
}
820820
};
821821

822-
#define STB_IMAGE_WRITE_IMPLEMENTATION
823-
#include <common/stb_write.h>
822+
#include "../3rdparty/stb_image_write.h"
824823

825824
static void ExportTextures(const fs::path &source, const gamedef_t *game, const mbsp_t &bsp)
826825
{

common/bspinfo.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include "common/imglib.hh"
3232
#include "common/litfile.hh"
3333

34-
#define STB_IMAGE_WRITE_STATIC
3534
#define STB_IMAGE_WRITE_IMPLEMENTATION
3635
#include "../3rdparty/stb_image_write.h"
3736

0 commit comments

Comments
 (0)