fix screenshot

This commit is contained in:
Denis Pauk 2020-03-02 08:47:36 +02:00 committed by Yamagi
parent 4047285029
commit b249362d0f

View file

@ -104,21 +104,21 @@ void Vk_ScreenShot_f (void)
{
for (i = 0; i < buffSize; i += 4)
{
temp = buffer[i];
buffer[i] = buffer[i + 2];
buffer[i + 2] = temp;
buffer[i + 3] = 255; // alpha component
buffer[i + 3] = 255;
}
}
else
{
for (i = 0; i < buffSize; i += 4)
{
buffer[i + 3] = 255;
temp = buffer[i];
buffer[i] = buffer[i + 2];
buffer[i + 2] = temp;
buffer[i + 3] = 255; // alpha component
}
}
ri.Vid_WriteScreenshot(vid.width, vid.height, 3, buffer);
ri.Vid_WriteScreenshot(vid.width, vid.height, 4, buffer);
free(buffer);
}