summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-04-29 06:25:48 +0200
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-04-29 06:26:33 +0200
commit5adfc5b2a5f9415b311e3958c92dc19e19bfdbe1 (patch)
tree94cd768d3f4df5ab3ecc7e189a26c38319cfc20f
parentf6defb172584185f5b32158dd8e4fa8d68350050 (diff)
I don't know what 'iqa' is, but whatever it is, it's preventing us from building shaders, so bye-bye
-rw-r--r--3rdparty/bgfx/tools/texturec/texturec.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/3rdparty/bgfx/tools/texturec/texturec.cpp b/3rdparty/bgfx/tools/texturec/texturec.cpp
index ba23a528339..434b556af18 100644
--- a/3rdparty/bgfx/tools/texturec/texturec.cpp
+++ b/3rdparty/bgfx/tools/texturec/texturec.cpp
@@ -19,9 +19,11 @@
#include <tinyexr/tinyexr.h>
#include <edtaa3/edtaa3func.h>
+#if 0
extern "C" {
#include <iqa.h>
}
+#endif
#define STB_IMAGE_IMPLEMENTATION
#include <stb/stb_image.c>
@@ -416,7 +418,7 @@ int main(int _argc, const char* _argv[])
const bool mips = cmdLine.hasArg('m', "mips");
const bool normalMap = cmdLine.hasArg('n', "normalmap");
- const bool iqa = cmdLine.hasArg('\0', "iqa");
+ //const bool iqa = cmdLine.hasArg('\0', "iqa");
uint32_t size = (uint32_t)bx::getSize(&reader);
const bgfx::Memory* mem = bgfx::alloc(size);
@@ -574,11 +576,13 @@ int main(int _argc, const char* _argv[])
);
void* ref = NULL;
+#if 0
if (iqa)
{
ref = BX_ALLOC(&allocator, size);
memcpy(ref, rgba, size);
}
+#endif
imageEncodeFromRgba8(output->data, rgba, dstMip.m_width, dstMip.m_height, format);
@@ -600,6 +604,7 @@ int main(int _argc, const char* _argv[])
, format
);
+#if 0
static const iqa_ssim_args args =
{
0.39f, // alpha
@@ -620,6 +625,7 @@ int main(int _argc, const char* _argv[])
, &args
);
printf("%f\n", result);
+#endif
BX_FREE(&allocator, ref);
}