Fix incorrect screenshot colors

This commit is contained in:
Higor Eurípedes 2015-06-17 11:32:08 -03:00
parent 3435a61518
commit 4d84021819

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.