diff --git a/hecl/lib/Compilers.cpp b/hecl/lib/Compilers.cpp index bbac68cec..f08d0b5c6 100644 --- a/hecl/lib/Compilers.cpp +++ b/hecl/lib/Compilers.cpp @@ -1,14 +1,17 @@ #include "hecl/Compilers.hpp" -#include "boo/graphicsdev/GLSLMacros.hpp" -#include "logvisor/logvisor.hpp" +#include +#include + #include #include #include #include + #if _WIN32 #include extern pD3DCompile D3DCompilePROC; #endif + #if __APPLE__ #include #include @@ -82,7 +85,7 @@ struct ShaderCompiler { ComPtr blobOut; if (FAILED(D3DCompilePROC(text.data(), text.size(), "Boo HLSL Source", nullptr, nullptr, "main", D3DShaderTypes[int(S::Enum)], BOO_D3DCOMPILE_FLAG, 0, &blobOut, &errBlob))) { - printf("%s\n", text.data()); + fmt::print(fmt("{}\n"), text); Log.report(logvisor::Fatal, fmt("error compiling shader: {}"), (char*)errBlob->GetBufferPointer()); return {}; }