From af1e8761facad73bf68cea772a3a83e58dc89f23 Mon Sep 17 00:00:00 2001 From: vrld Date: Fri, 12 Aug 2011 14:45:55 +0200 Subject: [PATCH] Change l.g.isSupported('framebuffer') to l.g.isSupported('canvas') --- src/modules/graphics/Graphics.cpp | 2 +- src/modules/graphics/Graphics.h | 2 +- src/modules/graphics/opengl/wrap_Graphics.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/graphics/Graphics.cpp b/src/modules/graphics/Graphics.cpp index 540a7c693..c32ae4620 100644 --- a/src/modules/graphics/Graphics.cpp +++ b/src/modules/graphics/Graphics.cpp @@ -151,7 +151,7 @@ namespace graphics StringMap::Entry Graphics::supportEntries[] = { - { "framebuffers", Graphics::SUPPORT_FRAMEBUFFERS }, + { "canvas", Graphics::SUPPORT_CANVAS }, { "pixeleffects", Graphics::SUPPORT_PIXELEFFECTS }, }; diff --git a/src/modules/graphics/Graphics.h b/src/modules/graphics/Graphics.h index e48edaca1..88b40ad38 100644 --- a/src/modules/graphics/Graphics.h +++ b/src/modules/graphics/Graphics.h @@ -80,7 +80,7 @@ namespace graphics enum Support { - SUPPORT_FRAMEBUFFERS = 1, + SUPPORT_CANVAS = 1, SUPPORT_PIXELEFFECTS, SUPPORT_MAX_ENUM }; diff --git a/src/modules/graphics/opengl/wrap_Graphics.cpp b/src/modules/graphics/opengl/wrap_Graphics.cpp index dac9e1213..6867f6a6d 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.cpp +++ b/src/modules/graphics/opengl/wrap_Graphics.cpp @@ -746,7 +746,7 @@ namespace opengl supported = false; switch(support) { - case Graphics::SUPPORT_FRAMEBUFFERS: + case Graphics::SUPPORT_CANVAS: if (!Canvas::isSupported()) supported = false; break;