mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-16 11:50:19 -05:00
Merge branch 'master' of github.com:bkaradzic/bgfx
This commit is contained in:
commit
24a1a76329
4 changed files with 104 additions and 97 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
@ -4,3 +4,4 @@
|
|||
*.sh eol=lf
|
||||
*.md eol=lf
|
||||
*.lua eol=lf
|
||||
*.mk eol=lf
|
||||
|
|
|
@ -53,8 +53,14 @@ VS_DEPS=$(addprefix $(BUILD_INTERMEDIATE_DIR)/,$(addsuffix .bin.d, $(basename $(
|
|||
FS_SOURCES=$(wildcard fs_*.sc)
|
||||
FS_DEPS=$(addprefix $(BUILD_INTERMEDIATE_DIR)/,$(addsuffix .bin.d, $(basename $(FS_SOURCES))))
|
||||
|
||||
UNAME := $(shell uname)
|
||||
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin))
|
||||
CMD_MKDIR=mkdir -p "$(1)"
|
||||
CMD_RMDIR=rm -r "$(1)"
|
||||
else
|
||||
CMD_MKDIR=cmd /C "if not exist "$(subst /,\,$(1))" mkdir "$(subst /,\,$(1))""
|
||||
CMD_RMDIR=cmd /C "if exist "$(subst /,\,$(1))" rmdir /S /Q "$(subst /,\,$(1))""
|
||||
endif
|
||||
|
||||
VS_BIN = $(addprefix $(BUILD_INTERMEDIATE_DIR)/, $(addsuffix .bin, $(basename $(VS_SOURCES))))
|
||||
FS_BIN = $(addprefix $(BUILD_INTERMEDIATE_DIR)/, $(addsuffix .bin, $(basename $(FS_SOURCES))))
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#if BX_PLATFORM_LINUX
|
||||
|
||||
# include <X11/Xlib.h>
|
||||
# include <GL/glx.h>
|
||||
|
||||
namespace bgfx
|
||||
{
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
# define GL_PROTOTYPES
|
||||
# define GL_GLEXT_LEGACY
|
||||
# include <GL/gl.h>
|
||||
# include <GL/glx.h>
|
||||
# undef GL_PROTOTYPES
|
||||
# elif BX_PLATFORM_OSX
|
||||
# define GL_GLEXT_LEGACY
|
||||
|
|
Loading…
Reference in a new issue