Skip to content

Commit

Permalink
backbuffer is cleaned before skybox drawing just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
Arsunt committed Aug 1, 2020
1 parent 4ba334c commit 0580db5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion game/draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ void __cdecl DrawRooms(__int16 currentRoom) {

UINT16 *ptr = (UINT16 *)&Anims[Objects[ID_SKYBOX].animIndex].framePtr[9];
phd_RotYXZsuperpack(&ptr, 0);
S_InitialisePolyList(0);
#ifdef FEATURE_VIEW_IMPROVED
S_InitialisePolyList(1); // Fill backbuffer with black
#else // !FEATURE_VIEW_IMPROVED
S_InitialisePolyList(0); // Leave backbuffer uncleaned
#endif // FEATURE_VIEW_IMPROVED
S_InsertBackground(MeshPtr[Objects[ID_SKYBOX].meshIndex]);
phd_PopMatrix();
} else {
Expand Down

0 comments on commit 0580db5

Please sign in to comment.