mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 17:05:37 +00:00
Fixed loading of Bitmap on Linux (invalid path separator).
This commit is contained in:
parent
9725f72fb9
commit
b4f044b293
|
@ -26,7 +26,7 @@ namespace Examples.Tutorial
|
||||||
[Example("Texture mapping", ExampleCategory.Tutorial, 5)]
|
[Example("Texture mapping", ExampleCategory.Tutorial, 5)]
|
||||||
public class Textures : GameWindow
|
public class Textures : GameWindow
|
||||||
{
|
{
|
||||||
Bitmap bitmap = new Bitmap("Data\\logo-dark.jpg");
|
Bitmap bitmap = new Bitmap("Data/logo-dark.jpg");
|
||||||
int texture;
|
int texture;
|
||||||
|
|
||||||
public Textures() : base(new DisplayMode(800, 600)) { }
|
public Textures() : base(new DisplayMode(800, 600)) { }
|
||||||
|
@ -46,7 +46,7 @@ namespace Examples.Tutorial
|
||||||
|
|
||||||
GL.GenTextures(1, out texture);
|
GL.GenTextures(1, out texture);
|
||||||
GL.BindTexture(TextureTarget.Texture2d, texture);
|
GL.BindTexture(TextureTarget.Texture2d, texture);
|
||||||
|
|
||||||
BitmapData data = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height),
|
BitmapData data = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height),
|
||||||
ImageLockMode.ReadOnly, bitmap.PixelFormat);
|
ImageLockMode.ReadOnly, bitmap.PixelFormat);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue