Browse Source

bmp isn't a supported format for ImageData:encode.

--HG--
branch : minor
Alex Szpakowski 10 years ago
parent
commit
bf5f0b4175

+ 1 - 1
src/modules/graphics/opengl/VertexBuffer.h

@@ -289,7 +289,7 @@ private:
  *  indices[i*6 + 1] = i*4 + 1;
  *  indices[i*6 + 2] = i*4 + 2;
  *
- *  indices[i*6 + 3] = i*4 + 0;
+ *  indices[i*6 + 3] = i*4 + 1;
  *  indices[i*6 + 4] = i*4 + 2;
  *  indices[i*6 + 5] = i*4 + 3;
  *

+ 0 - 1
src/modules/image/ImageData.cpp

@@ -179,7 +179,6 @@ bool ImageData::getConstant(ImageData::Format in, const char  *&out)
 StringMap<ImageData::Format, ImageData::FORMAT_MAX_ENUM>::Entry ImageData::formatEntries[] =
 {
 	{"tga", ImageData::FORMAT_TGA},
-	{"bmp", ImageData::FORMAT_BMP},
 	{"jpg", ImageData::FORMAT_JPG},
 	{"png", ImageData::FORMAT_PNG},
 };

+ 0 - 1
src/modules/image/ImageData.h

@@ -50,7 +50,6 @@ public:
 	enum Format
 	{
 		FORMAT_TGA,
-		FORMAT_BMP,
 		FORMAT_JPG,
 		FORMAT_PNG,
 		FORMAT_MAX_ENUM

+ 0 - 2
src/modules/image/magpie/ImageIOHandler.cpp

@@ -55,8 +55,6 @@ static CFStringRef getFormatType(ImageData::Format format)
 {
 	switch (format)
 	{
-	case ImageData::FORMAT_BMP:
-		return kUTTypeBMP;
 	case ImageData::FORMAT_JPG:
 		return kUTTypeJPEG;
 	case ImageData::FORMAT_TGA: