mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Merge remote-tracking branch 'upstream/12.0-development' into 12.0-development
This commit is contained in:
@@ -2335,6 +2335,8 @@ int w_getBackgroundColor(lua_State *L)
|
||||
|
||||
int w_setNewFont(lua_State *L)
|
||||
{
|
||||
luax_markdeprecated(L, 1, "love.graphics.setNewFont", API_FUNCTION, DEPRECATED_NO_REPLACEMENT, nullptr);
|
||||
|
||||
int ret = w_newFont(L);
|
||||
Font *font = luax_checktype<Font>(L, -1);
|
||||
instance()->setFont(font);
|
||||
|
||||
@@ -262,11 +262,9 @@ std::vector<Window::ContextAttribs> Window::getContextAttribsList() const
|
||||
}
|
||||
}
|
||||
|
||||
if (!preferGLES)
|
||||
{
|
||||
const char *gleshint = SDL_GetHint("LOVE_GRAPHICS_USE_OPENGLES");
|
||||
const char *gleshint = SDL_GetHint("LOVE_GRAPHICS_USE_OPENGLES");
|
||||
if (gleshint != nullptr)
|
||||
preferGLES = (gleshint != nullptr && gleshint[0] != '0');
|
||||
}
|
||||
|
||||
// Do we want a debug context?
|
||||
bool debug = love::graphics::isDebugEnabled();
|
||||
|
||||
Reference in New Issue
Block a user