From 4e3ae6867bbb43733b8a4d176d9015de14b9b341 Mon Sep 17 00:00:00 2001 From: "SND\\AstrorEnales_cp" Date: Thu, 30 Aug 2012 14:11:31 +0000 Subject: [PATCH] Fixed logging in AddInSystemFactory --- ANX.Framework/NonXNA/AddInSystemFactory.cs | 2 +- .../ANX.RenderSystem.Windows.DX11/IndexBuffer_DX11.cs | 3 ++- Samples/SimpleSprite/Program.cs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ANX.Framework/NonXNA/AddInSystemFactory.cs b/ANX.Framework/NonXNA/AddInSystemFactory.cs index 09bed535..59b3a4e7 100644 --- a/ANX.Framework/NonXNA/AddInSystemFactory.cs +++ b/ANX.Framework/NonXNA/AddInSystemFactory.cs @@ -90,7 +90,7 @@ namespace ANX.Framework.NonXNA if (addin.IsValid && addin.IsSupported) { addinSystems[addin.Type].Add(addin); - Logger.Info("[ANX] successfully loaded addin " + addin.Name + "."); + Logger.Info("[ANX] successfully loaded AddIn (" + addin.Type + ") " + creatorType.FullName + "."); } else Logger.Info("[ANX] skipped loading file because it is not supported or not a valid AddIn."); diff --git a/RenderSystems/ANX.RenderSystem.Windows.DX11/IndexBuffer_DX11.cs b/RenderSystems/ANX.RenderSystem.Windows.DX11/IndexBuffer_DX11.cs index b60a3d6c..2ab92252 100644 --- a/RenderSystems/ANX.RenderSystem.Windows.DX11/IndexBuffer_DX11.cs +++ b/RenderSystems/ANX.RenderSystem.Windows.DX11/IndexBuffer_DX11.cs @@ -60,7 +60,8 @@ namespace ANX.RenderSystem.Windows.DX11 SetData(graphicsDevice, data, 0, data.Length); } - public void SetData(GraphicsDevice graphicsDevice, int offsetInBytes, T[] data, int startIndex, int elementCount) where T : struct + public void SetData(GraphicsDevice graphicsDevice, int offsetInBytes, T[] data, int startIndex, int elementCount) + where T : struct { GraphicsDeviceWindowsDX11 dx11GraphicsDevice = graphicsDevice.NativeDevice as GraphicsDeviceWindowsDX11; DeviceContext context = dx11GraphicsDevice.NativeDevice; diff --git a/Samples/SimpleSprite/Program.cs b/Samples/SimpleSprite/Program.cs index 717203bd..543e76e6 100644 --- a/Samples/SimpleSprite/Program.cs +++ b/Samples/SimpleSprite/Program.cs @@ -1,4 +1,4 @@ -#define USE_GL3 +//#define USE_GL3 using System; using ANX.Framework.NonXNA;