Fixed the rg11b10f canvas format, removed rgb9e5 due to lack of real support, improved love.graphics.hasCanvasFormat to do extra checks

--HG--
branch : Canvas-formats
This commit is contained in:
Alex Szpakowski
2014-05-13 21:59:24 -03:00
parent febbecddf7
commit 4aeba24e94
2 changed files with 59 additions and 20 deletions
+2 -1
View File
@@ -50,7 +50,6 @@ public:
FORMAT_RGB5A1,
FORMAT_RGB565,
FORMAT_RGB10A2,
FORMAT_RGB9E5,
FORMAT_RG11B10F,
FORMAT_RGBA16F,
FORMAT_RGBA32F,
@@ -158,6 +157,8 @@ private:
void setupGrab();
void drawv(const Matrix &t, const Vertex *v);
static bool supportedFormats[FORMAT_MAX_ENUM];
static StringMap<Format, FORMAT_MAX_ENUM>::Entry formatEntries[];
static StringMap<Format, FORMAT_MAX_ENUM> formats;