浏览代码

Removed the 'multicanvas' GraphicsFeature constant since it's redundant (the love.graphics.getSystemLimits().multicanvas number can be used instead.)

Alex Szpakowski 9 年之前
父节点
当前提交
a81621df82
共有 3 个文件被更改,包括 0 次插入4 次删除
  1. 0 1
      src/modules/graphics/Graphics.cpp
  2. 0 1
      src/modules/graphics/Graphics.h
  3. 0 2
      src/modules/graphics/opengl/Graphics.cpp

+ 0 - 1
src/modules/graphics/Graphics.cpp

@@ -181,7 +181,6 @@ StringMap<Graphics::LineJoin, Graphics::LINE_JOIN_MAX_ENUM> Graphics::lineJoins(
 
 
 StringMap<Graphics::Support, Graphics::SUPPORT_MAX_ENUM>::Entry Graphics::supportEntries[] =
 StringMap<Graphics::Support, Graphics::SUPPORT_MAX_ENUM>::Entry Graphics::supportEntries[] =
 {
 {
-	{ "multicanvas", SUPPORT_MULTI_CANVAS },
 	{ "multicanvasformats", SUPPORT_MULTI_CANVAS_FORMATS },
 	{ "multicanvasformats", SUPPORT_MULTI_CANVAS_FORMATS },
 };
 };
 
 

+ 0 - 1
src/modules/graphics/Graphics.h

@@ -98,7 +98,6 @@ public:
 
 
 	enum Support
 	enum Support
 	{
 	{
-		SUPPORT_MULTI_CANVAS,
 		SUPPORT_MULTI_CANVAS_FORMATS,
 		SUPPORT_MULTI_CANVAS_FORMATS,
 		SUPPORT_MAX_ENUM
 		SUPPORT_MAX_ENUM
 	};
 	};

+ 0 - 2
src/modules/graphics/opengl/Graphics.cpp

@@ -1502,8 +1502,6 @@ bool Graphics::isSupported(Support feature) const
 {
 {
 	switch (feature)
 	switch (feature)
 	{
 	{
-	case SUPPORT_MULTI_CANVAS:
-		return Canvas::isMultiCanvasSupported();
 	case SUPPORT_MULTI_CANVAS_FORMATS:
 	case SUPPORT_MULTI_CANVAS_FORMATS:
 		return Canvas::isMultiFormatMultiCanvasSupported();
 		return Canvas::isMultiFormatMultiCanvasSupported();
 	default:
 	default: