Merge pull request #1813 from heuripedes/screenshot-fix

Fix incorrect screenshot colors
This commit is contained in:
Twinaphex 2015-06-17 18:21:35 +02:00
commit 857ee461c1

View File

@ -94,14 +94,14 @@ static void video_frame(const void *data, unsigned width,
if (!driver->video_active)
return;
video_driver_cached_frame_set(data, width, height, pitch);
if (video_frame_scale(data, width, height, pitch))
{
data = driver->scaler_out;
pitch = driver->scaler.out_stride;
}
video_driver_cached_frame_set(data, width, height, pitch);
/* Slightly messy code,
* but we really need to do processing before blocking on VSync
* for best possible scheduling.