mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-26 13:20:52 +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
|
// Switch to render buffers dimensioned for the savepic
|
||||||
screen->SetSaveBuffers(true);
|
screen->SetSaveBuffers(true);
|
||||||
|
|
||||||
screen->ImageTransitionScene(true);
|
screen->ImageTransitionScene(true);
|
||||||
|
|
||||||
RenderState.SetVertexBuffer(screen->mVertexData);
|
RenderState.SetVertexBuffer(screen->mVertexData);
|
||||||
|
@ -338,6 +339,10 @@ void WriteSavePic(FileWriter* file, int width, int height)
|
||||||
ydim = height;
|
ydim = height;
|
||||||
videoSetViewableArea(0, 0, width - 1, height - 1);
|
videoSetViewableArea(0, 0, width - 1, height - 1);
|
||||||
renderSetAspect(65536, 65536);
|
renderSetAspect(65536, 65536);
|
||||||
|
screen->SetSceneRenderTarget(false);
|
||||||
|
RenderState.SetPassType(NORMAL_PASS);
|
||||||
|
RenderState.EnableDrawBuffers(1, true);
|
||||||
|
|
||||||
bool didit = gi->GenerateSavePic();
|
bool didit = gi->GenerateSavePic();
|
||||||
|
|
||||||
xdim = oldx;
|
xdim = oldx;
|
||||||
|
|
Loading…
Reference in a new issue