summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-02-23 16:28:35 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-02-23 16:28:35 +0000
commit26c16590a6f826864c0e8055311e5725bc2c2042 (patch)
tree1405af34da5c2399bdd19bdab983c8364aba6f4c /Graphics/GraphicsEngineOpenGL
parentFixed Linux build (diff)
downloadDiligentCore-26c16590a6f826864c0e8055311e5725bc2c2042.tar.gz
DiligentCore-26c16590a6f826864c0e8055311e5725bc2c2042.zip
Removed Errors.h from engine factory headers to dependency on NativePlatform
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h b/Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h
index 32e5987e..6b85331b 100644
--- a/Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h
+++ b/Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h
@@ -26,7 +26,7 @@
/// \file
/// Declaration of functions that create OpenGL-based engine implementation
-#include "../../../Platforms/Basic/interface/Errors.h"
+#include <sstream>
#include "../../GraphicsEngine/interface/RenderDevice.h"
#include "../../GraphicsEngine/interface/DeviceContext.h"
@@ -103,14 +103,18 @@ extern "C"
auto hModule = LoadLibraryA( LibName.c_str() );
if( hModule == NULL )
{
- LOG_ERROR_MESSAGE( "Failed to load ", LibName, " library." );
+ std::stringstream ss;
+ ss << "Failed to load " << LibName << " library.\n";
+ OutputDebugStringA(ss.str().c_str());
return false;
}
GetFactoryFunc = reinterpret_cast<GetEngineFactoryOpenGLType>( GetProcAddress(hModule, "GetEngineFactoryOpenGL") );
if( GetFactoryFunc == NULL )
{
- LOG_ERROR_MESSAGE( "Failed to load GetEngineFactoryOpenGL() from ", LibName, " library." );
+ std::stringstream ss;
+ ss << "Failed to load GetEngineFactoryOpenGL() from " << LibName << " library.\n";
+ OutputDebugStringA(ss.str().c_str());
FreeLibrary( hModule );
return false;
}