mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Only use opengl debug groups if the LOVE_GRAPHICS_DEBUG environment variable is set to 1.
--HG-- branch : minor
This commit is contained in:
@@ -235,8 +235,7 @@ std::vector<Window::ContextAttribs> Window::getContextAttribsList() const
|
||||
}
|
||||
|
||||
// Do we want a debug context?
|
||||
const char *debughint = SDL_GetHint("LOVE_GRAPHICS_DEBUG");
|
||||
bool debug = (debughint != nullptr && debughint[0] != '0');
|
||||
bool debug = love::graphics::isDebugEnabled();
|
||||
|
||||
const char *preferGL2hint = SDL_GetHint("LOVE_GRAPHICS_USE_GL2");
|
||||
bool preferGL2 = (preferGL2hint != nullptr && preferGL2hint[0] != '0');
|
||||
|
||||
Reference in New Issue
Block a user