mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-03 07:21:09 +00:00
Fixed some code-style issues.
This commit is contained in:
parent
628a4a5fbe
commit
bf8a555bc9
|
@ -181,12 +181,8 @@ namespace OpenTK.Graphics
|
||||||
{
|
{
|
||||||
int* bitmap_data_ptr = (int*)bitmap_data.Scan0;
|
int* bitmap_data_ptr = (int*)bitmap_data.Scan0;
|
||||||
for (int y = 0; y < rect.Height; y++)
|
for (int y = 0; y < rect.Height; y++)
|
||||||
{
|
|
||||||
for (int x = 0; x < rect.Width; x++)
|
for (int x = 0; x < rect.Width; x++)
|
||||||
{
|
|
||||||
data[y * rect.Width + x] = *(bitmap_data_ptr + y * bmp.Width + x);
|
data[y * rect.Width + x] = *(bitmap_data_ptr + y * bmp.Width + x);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fixed (int* data_ptr = data)
|
fixed (int* data_ptr = data)
|
||||||
GL.TexSubImage2D(TextureTarget.Texture2D, 0, rect.Left, rect.Top, rect.Width, rect.Height,
|
GL.TexSubImage2D(TextureTarget.Texture2D, 0, rect.Left, rect.Top, rect.Width, rect.Height,
|
||||||
|
|
Loading…
Reference in a new issue