Skip to content

Commit

Permalink
- removed redundant TextureFilterChanged method from DFrameBuffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 29, 2020
1 parent 5861fdd commit b60fd4d
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 21 deletions.
5 changes: 0 additions & 5 deletions src/common/rendering/gl/gl_framebuffer.cpp
Expand Up @@ -340,11 +340,6 @@ IDataBuffer *OpenGLFrameBuffer::CreateDataBuffer(int bindingpoint, bool ssbo, bo
return new GLDataBuffer(bindingpoint, ssbo);
}

void OpenGLFrameBuffer::TextureFilterChanged()
{
if (GLRenderer != NULL && GLRenderer->mSamplerManager != NULL) GLRenderer->mSamplerManager->SetTextureFilterMode();
}

void OpenGLFrameBuffer::BlurScene(float amount)
{
GLRenderer->BlurScene(amount);
Expand Down
1 change: 0 additions & 1 deletion src/common/rendering/gl/gl_framebuffer.h
Expand Up @@ -43,7 +43,6 @@ class OpenGLFrameBuffer : public SystemGLFrameBuffer
void SetTextureFilterMode() override;
IHardwareTexture *CreateHardwareTexture(int numchannels) override;
void PrecacheMaterial(FMaterial *mat, int translation) override;
void TextureFilterChanged() override;
void BeginFrame() override;
void SetViewportRects(IntRect *bounds) override;
void BlurScene(float amount) override;
Expand Down
4 changes: 2 additions & 2 deletions src/common/rendering/hwrenderer/data/hw_cvars.cpp
Expand Up @@ -121,13 +121,13 @@ CVAR(Int, gl_satformula, 1, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
//==========================================================================
CUSTOM_CVARD(Float, gl_texture_filter_anisotropic, 8, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL, "changes the OpenGL texture anisotropy setting")
{
screen->TextureFilterChanged();
screen->SetTextureFilterMode();
}

CUSTOM_CVARD(Int, gl_texture_filter, 4, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOINITCALL, "changes the texture filtering settings")
{
if (self < 0 || self > 6) self=4;
screen->TextureFilterChanged();
screen->SetTextureFilterMode();
}

CVAR(Bool, gl_precache, false, CVAR_ARCHIVE)
Expand Down
Expand Up @@ -329,11 +329,6 @@ IDataBuffer *PolyFrameBuffer::CreateDataBuffer(int bindingpoint, bool ssbo, bool
}

void PolyFrameBuffer::SetTextureFilterMode()
{
TextureFilterChanged();
}

void PolyFrameBuffer::TextureFilterChanged()
{
}

Expand Down
Expand Up @@ -37,7 +37,6 @@ class PolyFrameBuffer : public SystemBaseFrameBuffer
void PrecacheMaterial(FMaterial *mat, int translation) override;
void UpdatePalette() override;
void SetTextureFilterMode() override;
void TextureFilterChanged() override;
void BeginFrame() override;
void BlurScene(float amount) override;
void PostProcessScene(bool swscene, int fixedcm, const std::function<void()> &afterBloomDrawEndScene2D) override;
Expand Down
1 change: 0 additions & 1 deletion src/common/rendering/v_video.h
Expand Up @@ -200,7 +200,6 @@ class DFrameBuffer
virtual IHardwareTexture *CreateHardwareTexture(int numchannels) { return nullptr; }
virtual void PrecacheMaterial(FMaterial *mat, int translation) {}
virtual FMaterial* CreateMaterial(FGameTexture* tex, int scaleflags);
virtual void TextureFilterChanged() {}
virtual void BeginFrame() {}
virtual void SetWindowSize(int w, int h) {}
virtual void StartPrecaching() {}
Expand Down
5 changes: 0 additions & 5 deletions src/common/rendering/vulkan/system/vk_framebuffer.cpp
Expand Up @@ -419,11 +419,6 @@ IDataBuffer *VulkanFrameBuffer::CreateDataBuffer(int bindingpoint, bool ssbo, bo
}

void VulkanFrameBuffer::SetTextureFilterMode()
{
TextureFilterChanged();
}

void VulkanFrameBuffer::TextureFilterChanged()
{
if (mSamplerManager)
{
Expand Down
1 change: 0 additions & 1 deletion src/common/rendering/vulkan/system/vk_framebuffer.h
Expand Up @@ -77,7 +77,6 @@ class VulkanFrameBuffer : public SystemBaseFrameBuffer
const char* DeviceName() const override;
int Backend() override { return 1; }
void SetTextureFilterMode() override;
void TextureFilterChanged() override;
void StartPrecaching() override;
void BeginFrame() override;
void BlurScene(float amount) override;
Expand Down

0 comments on commit b60fd4d

Please sign in to comment.