From 26c16590a6f826864c0e8055311e5725bc2c2042 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 23 Feb 2018 08:28:35 -0800 Subject: Removed Errors.h from engine factory headers to dependency on NativePlatform --- .../GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') 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 #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( 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; } -- cgit v1.2.3