mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 12:01:25 +00:00
Fix screenshot_cubemap command.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6222 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
6f5180a915
commit
6515c0e5cd
2 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2018
|
* Copyright (c) 2015-2018
|
||||||
* Marco Hladik All rights reserved.
|
* Marco Cawthorne All rights reserved.
|
||||||
*
|
*
|
||||||
* This is free software: you can redistribute it and/or modify
|
* This is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -2907,8 +2907,8 @@ void SCR_ScreenShot_Cubemap_f(void)
|
||||||
bb=0;
|
bb=0;
|
||||||
for (i = 0; i < 6; i++)
|
for (i = 0; i < 6; i++)
|
||||||
{
|
{
|
||||||
VectorCopy(sides[i].angle, cl.playerview->simangles);
|
VectorCopy(sides[i].angle, cl.playerview->aimangles);
|
||||||
VectorCopy(cl.playerview->simangles, cl.playerview->viewangles);
|
VectorCopy(cl.playerview->aimangles, cl.playerview->viewangles);
|
||||||
|
|
||||||
//don't use hdr when saving dds files. it generally means dx10 dds files and most tools suck too much and then I get blamed for writing 'corrupt' dds files.
|
//don't use hdr when saving dds files. it generally means dx10 dds files and most tools suck too much and then I get blamed for writing 'corrupt' dds files.
|
||||||
facedata = SCR_ScreenShot_Capture(fbwidth, fbheight, &stride, &fmt, true, !!strcmp(ext, ".dds"));
|
facedata = SCR_ScreenShot_Capture(fbwidth, fbheight, &stride, &fmt, true, !!strcmp(ext, ".dds"));
|
||||||
|
@ -2992,8 +2992,8 @@ void SCR_ScreenShot_Cubemap_f(void)
|
||||||
{
|
{
|
||||||
for (i = firstside; i < firstside+6; i++)
|
for (i = firstside; i < firstside+6; i++)
|
||||||
{
|
{
|
||||||
VectorCopy(sides[i].angle, cl.playerview->simangles);
|
VectorCopy(sides[i].angle, cl.playerview->aimangles);
|
||||||
VectorCopy(cl.playerview->simangles, cl.playerview->viewangles);
|
VectorCopy(cl.playerview->aimangles, cl.playerview->viewangles);
|
||||||
|
|
||||||
buffer = SCR_ScreenShot_Capture(fbwidth, fbheight, &stride, &fmt, true, false);
|
buffer = SCR_ScreenShot_Capture(fbwidth, fbheight, &stride, &fmt, true, false);
|
||||||
if (buffer)
|
if (buffer)
|
||||||
|
|
Loading…
Reference in a new issue