Skip to content

Commit

Permalink
Cleanup: Remove now unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
lethal-guitar committed Aug 22, 2021
1 parent 33bf02f commit bc0e1aa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/renderer/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ struct Renderer::Impl
RenderMode mLastKnownRenderMode = RenderMode::SpriteBatch;

// cold
base::Size<int> mMaxWindowSize;
int mNumTextures = 0;
int mNumInternalTextures = 0;
TextureId mWaterSurfaceAnimTexture = 0;
Expand Down Expand Up @@ -429,11 +428,6 @@ struct Renderer::Impl
{"position", "texCoordMask"})
, mWindowSize(getSize(pWindow))
, mpWindow(pWindow)
, mMaxWindowSize([pWindow]() {
SDL_DisplayMode displayMode;
sdl_utils::check(SDL_GetDesktopDisplayMode(0, &displayMode));
return base::Size<int>{displayMode.w, displayMode.h};
}())
{
// General configuration
glDisable(GL_DEPTH_TEST);
Expand Down Expand Up @@ -1323,12 +1317,6 @@ base::Size<int> Renderer::windowSize() const
}


base::Size<int> Renderer::maxWindowSize() const
{
return mpImpl->mMaxWindowSize;
}


void Renderer::setRenderTarget(const TextureId target)
{
mpImpl->setRenderTarget(target);
Expand Down

0 comments on commit bc0e1aa

Please sign in to comment.