From b4f044b293e2c23020c0161b4c644d7eeaf74da7 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 11 Nov 2007 20:09:18 +0000 Subject: [PATCH] Fixed loading of Bitmap on Linux (invalid path separator). --- Source/Examples/Tutorial/Textures.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Examples/Tutorial/Textures.cs b/Source/Examples/Tutorial/Textures.cs index 20847c8c..d28e1200 100644 --- a/Source/Examples/Tutorial/Textures.cs +++ b/Source/Examples/Tutorial/Textures.cs @@ -26,7 +26,7 @@ namespace Examples.Tutorial [Example("Texture mapping", ExampleCategory.Tutorial, 5)] public class Textures : GameWindow { - Bitmap bitmap = new Bitmap("Data\\logo-dark.jpg"); + Bitmap bitmap = new Bitmap("Data/logo-dark.jpg"); int texture; public Textures() : base(new DisplayMode(800, 600)) { } @@ -46,7 +46,7 @@ namespace Examples.Tutorial GL.GenTextures(1, out texture); GL.BindTexture(TextureTarget.Texture2d, texture); - + BitmapData data = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height), ImageLockMode.ReadOnly, bitmap.PixelFormat);