Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

GetData

$
0
0

@Myth wrote:

Hi, I'm trying to extract the colors of the pixels from a texture, but I'm jumping an error. My code is:

Color[] data = new Color[texture.Width * texture.Height];
texture.GetData(data);

And the error is:

HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: Unknown

If anyone has any idea what may be happening. Thanks in advance.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles