Skip to content

Commit

Permalink
Use FILTER_NEAREST if enableHybridFilter is disabled
Browse files Browse the repository at this point in the history
Bilinear by itself looks ugly and it's only necessary to use it for the hybrid filter
  • Loading branch information
oddMLan authored and gonetz committed May 10, 2020
1 parent 30a3fe4 commit ee0de5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FrameBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,7 @@ void FrameBufferList::renderBuffer()
hOffset + dstX1,
vOffset + (s32)(dstY1*dstScaleY) };

const TextureParam filter = textureParameters::FILTER_LINEAR;
const TextureParam filter = config.generalEmulation.enableHybridFilter > 0 ? textureParameters::FILTER_LINEAR : textureParameters::FILTER_NEAREST;
ObjectHandle readBuffer;

if (pFilteredBuffer->m_pTexture->frameBufferTexture == CachedTexture::fbMultiSample) {
Expand Down

0 comments on commit ee0de5e

Please sign in to comment.