Set Renderer.readPixels alpha channel to be non-transparent on native targets

This commit is contained in:
Daniel Uranga
2016-01-21 01:25:20 -03:00
parent 93b694bd05
commit 119c281d05

View File

@@ -217,6 +217,10 @@ namespace lime {
SDL_RenderReadPixels (sdlRenderer, &bounds, SDL_PIXELFORMAT_ABGR8888, buffer->data->Data (), buffer->Stride ());
for (unsigned char *it=buffer->data->Data()+3; it<(buffer->data->Data()+buffer->data->Length());it+=4) {
*it = 0xff;
}
}
}