Browse Source

quick windows fix

Ciprian-Mihai Melinescu 6 năm trước cách đây
mục cha
commit
cd78505f1c
2 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 1 0
      src/libc.h
  2. 2 0
      src/render.c

+ 1 - 0
src/libc.h

@@ -14,6 +14,7 @@
 #include <windows.h>
 #undef near
 #undef far
+#define strcasecmp _stricmp
 #define strncasecmp _strnicmp
 #define alloca _alloca
 #endif

+ 2 - 0
src/render.c

@@ -108,6 +108,8 @@ static void a__GlPrintError(const char *message, int error) {
 
 #ifdef _WIN32
 #define WGL__FUNCLIST \
+	WGL__FUNCLIST_DO(PFNGLBLENDCOLORPROC, BlendColor) \
+	WGL__FUNCLIST_DO(PFNGLBLENDEQUATIONPROC, BlendEquation) \
 	WGL__FUNCLIST_DO(PFNGLGENBUFFERSPROC, GenBuffers) \
 	WGL__FUNCLIST_DO(PFNGLBINDBUFFERPROC, BindBuffer) \
 	WGL__FUNCLIST_DO(PFNGLBUFFERDATAPROC, BufferData) \