mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Merge branch 'master' into 12.0-development
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
#include <string.h>
|
||||
#include "glad.hpp"
|
||||
|
||||
namespace glad {
|
||||
|
||||
|
||||
#ifdef GLAD_USE_SDL
|
||||
#include <SDL.h>
|
||||
@@ -13,6 +9,10 @@ namespace glad {
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "glad.hpp"
|
||||
|
||||
namespace glad {
|
||||
|
||||
bool gladLoadGL(void) {
|
||||
#ifdef GLAD_USE_SDL
|
||||
return gladLoadGLLoader(SDL_GL_GetProcAddress);
|
||||
|
||||
@@ -73,7 +73,9 @@
|
||||
typedef size_t lua_Unsigned;
|
||||
#endif
|
||||
|
||||
#if LUA_VERSION_NUM == 501
|
||||
#if LUA_VERSION_NUM >= 504
|
||||
# define LUAL_BUFFER53_BUFFER(B) (B)->b.b
|
||||
#elif LUA_VERSION_NUM == 501
|
||||
# define LUAL_BUFFER53_BUFFER(B) (B)->b.buffer
|
||||
#else
|
||||
# define LUAL_BUFFER53_BUFFER(B) (B)->b.initb
|
||||
|
||||
@@ -309,8 +309,7 @@ int luaopen_luautf8 (lua_State *L) {
|
||||
lua_setfield(L, -2, l->name);
|
||||
}
|
||||
}
|
||||
lua_pushliteral(L, UTF8PATT);
|
||||
lua_pushlstring(L, UTF8PATT, sizeof(UTF8PATT) / sizeof(char) - 1);
|
||||
lua_setfield(L, -2, "charpattern");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user