mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
- tinkering with the savepic code.
This was definitely missing but it's not the cause of the empty savepic.
This commit is contained in:
parent
3f886ad818
commit
763be58134
1 changed files with 5 additions and 0 deletions
|
@ -322,6 +322,7 @@ void WriteSavePic(FileWriter* file, int width, int height)
|
|||
|
||||
// Switch to render buffers dimensioned for the savepic
|
||||
screen->SetSaveBuffers(true);
|
||||
|
||||
screen->ImageTransitionScene(true);
|
||||
|
||||
RenderState.SetVertexBuffer(screen->mVertexData);
|
||||
|
@ -338,6 +339,10 @@ void WriteSavePic(FileWriter* file, int width, int height)
|
|||
ydim = height;
|
||||
videoSetViewableArea(0, 0, width - 1, height - 1);
|
||||
renderSetAspect(65536, 65536);
|
||||
screen->SetSceneRenderTarget(false);
|
||||
RenderState.SetPassType(NORMAL_PASS);
|
||||
RenderState.EnableDrawBuffers(1, true);
|
||||
|
||||
bool didit = gi->GenerateSavePic();
|
||||
|
||||
xdim = oldx;
|
||||
|
|
Loading…
Reference in a new issue