Skip to content

Commit

Permalink
merge with update to render api from fix for window resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
assertivist committed Aug 13, 2024
1 parent 7ce62d7 commit 1a54b4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/render/LegacyOpenGLRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ void LegacyOpenGLRenderer::ApplyProjection()
//glCheckErrors();
}

void LegacyOpenGLRenderer::UpdateViewRect(int width, int height, float pixelRatio)
{
AbstractRenderer::UpdateViewRect(width, height, pixelRatio);
ApplyProjection();
}

void LegacyOpenGLRenderer::LevelReset()
{
dynamicWorld->DisposeParts();
Expand Down
1 change: 1 addition & 0 deletions src/render/LegacyOpenGLRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class LegacyOpenGLRenderer final: public AbstractRenderer {
virtual void RemoveHUDPart(CBSPPart *part) override { RemovePart(part); };
virtual void RemovePart(CBSPPart *part) override;
virtual void RenderFrame() override;
void UpdateViewRect(int width, int height, float pixelRatio) override;
private:
SDL_Window *window;

Expand Down

0 comments on commit 1a54b4a

Please sign in to comment.