Commit 4239a3d3 authored by mercury233's avatar mercury233 Committed by GitHub

fix missing __TEXT macro in #16 (#23)

parent 0d883411
......@@ -325,9 +325,9 @@ HRESULT CD3D9ShaderMaterialRenderer::stubD3DXAssembleShader(LPCSTR pSrcData,
if (!pFn && !LoadFailed)
{
// try to load dll
irr::core::string<TCHAR> strDllName = "d3dx9_";
irr::core::string<TCHAR> strDllName = __TEXT("d3dx9_");
strDllName += (int)D3DX_SDK_VERSION;
strDllName += ".dll";
strDllName += __TEXT(".dll");
HMODULE hMod = LoadLibrary(strDllName.c_str());
if (hMod)
......@@ -385,9 +385,9 @@ HRESULT CD3D9ShaderMaterialRenderer::stubD3DXAssembleShaderFromFile(LPCSTR pSrcF
if (!pFn && !LoadFailed)
{
// try to load dll
irr::core::string<TCHAR> strDllName = "d3dx9_";
irr::core::string<TCHAR> strDllName = __TEXT("d3dx9_");
strDllName += (int)D3DX_SDK_VERSION;
strDllName += ".dll";
strDllName += __TEXT(".dll");
HMODULE hMod = LoadLibrary(strDllName.c_str());
if (hMod)
......@@ -446,9 +446,9 @@ HRESULT CD3D9ShaderMaterialRenderer::stubD3DXCompileShader(LPCSTR pSrcData, UINT
if (!pFn && !LoadFailed)
{
// try to load dll
irr::core::string<TCHAR> strDllName = "d3dx9_";
irr::core::string<TCHAR> strDllName = __TEXT("d3dx9_");
strDllName += (int)D3DX_SDK_VERSION;
strDllName += ".dll";
strDllName += __TEXT(".dll");
HMODULE hMod = LoadLibrary(strDllName.c_str());
if (hMod)
......@@ -506,9 +506,9 @@ HRESULT CD3D9ShaderMaterialRenderer::stubD3DXCompileShaderFromFile(LPCSTR pSrcFi
if (!pFn && !LoadFailed)
{
// try to load dll
irr::core::string<TCHAR> strDllName = "d3dx9_";
irr::core::string<TCHAR> strDllName = __TEXT("d3dx9_");
strDllName += (int)D3DX_SDK_VERSION;
strDllName += ".dll";
strDllName += __TEXT(".dll");
HMODULE hMod = LoadLibrary(strDllName.c_str());
if (hMod)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment