Skip to content

Commit

Permalink
- amend previous commit: add softpoly fix
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle authored and coelckers committed Mar 26, 2020
1 parent 7c9d8a0 commit 6049e80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rendering/polyrenderer/backend/poly_framebuffer.cpp
Expand Up @@ -267,7 +267,8 @@ sector_t *PolyFrameBuffer::RenderView(player_t *player)
NoInterpolateView = false;

// Shader start time does not need to be handled per level. Just use the one from the camera to render from.
GetRenderState()->CheckTimer(player->camera->Level->ShaderStartTime);
if (player->camera)
GetRenderState()->CheckTimer(player->camera->Level->ShaderStartTime);
// prepare all camera textures that have been used in the last frame.
// This must be done for all levels, not just the primary one!
for (auto Level : AllLevels())
Expand Down

0 comments on commit 6049e80

Please sign in to comment.