浏览代码

love.image.isCompressed should return true if the file contains a compressed texture, even if the file's extension isn't 'dds'.

Alex Szpakowski 11 年之前
父节点
当前提交
9e93d854b8
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      src/modules/image/magpie/ddsHandler.cpp

+ 0 - 8
src/modules/image/magpie/ddsHandler.cpp

@@ -20,8 +20,6 @@
 
 #include "ddsHandler.h"
 
-#include <algorithm>
-
 namespace love
 {
 namespace image
@@ -31,12 +29,6 @@ namespace magpie
 
 bool ddsHandler::canParse(const filesystem::FileData *data)
 {
-	std::string ext = data->getExtension();
-	std::transform(ext.begin(), ext.end(), ext.begin(), tolower);
-
-	if (ext.compare("dds") != 0)
-		return false;
-
 	return dds::isCompressedDDS(data->getData(), data->getSize());
 }