mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Change l.g.isSupported('framebuffer') to l.g.isSupported('canvas')
This commit is contained in:
@@ -151,7 +151,7 @@ namespace graphics
|
||||
|
||||
StringMap<Graphics::Support, Graphics::SUPPORT_MAX_ENUM>::Entry Graphics::supportEntries[] =
|
||||
{
|
||||
{ "framebuffers", Graphics::SUPPORT_FRAMEBUFFERS },
|
||||
{ "canvas", Graphics::SUPPORT_CANVAS },
|
||||
{ "pixeleffects", Graphics::SUPPORT_PIXELEFFECTS },
|
||||
};
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace graphics
|
||||
|
||||
enum Support
|
||||
{
|
||||
SUPPORT_FRAMEBUFFERS = 1,
|
||||
SUPPORT_CANVAS = 1,
|
||||
SUPPORT_PIXELEFFECTS,
|
||||
SUPPORT_MAX_ENUM
|
||||
};
|
||||
|
||||
@@ -746,7 +746,7 @@ namespace opengl
|
||||
supported = false;
|
||||
switch(support)
|
||||
{
|
||||
case Graphics::SUPPORT_FRAMEBUFFERS:
|
||||
case Graphics::SUPPORT_CANVAS:
|
||||
if (!Canvas::isSupported())
|
||||
supported = false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user