mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Fix initialization of multisample textures.
This commit is contained in:
parent
97acd7d071
commit
b9453474b6
|
@ -165,10 +165,10 @@ void DepthBuffer::_initDepthBufferTexture(FrameBuffer * _pBuffer, CachedTexture
|
|||
gfxContext.init2DTexture(params);
|
||||
}
|
||||
_pTexture->frameBufferTexture = _multisample ? CachedTexture::fbMultiSample : CachedTexture::fbOneSample;
|
||||
{
|
||||
if (!_multisample) {
|
||||
Context::TexParameters params;
|
||||
params.handle = _pTexture->name;
|
||||
params.target = _multisample ? textureTarget::TEXTURE_2D_MULTISAMPLE : textureTarget::TEXTURE_2D;
|
||||
params.target = textureTarget::TEXTURE_2D;
|
||||
params.textureUnitIndex = textureIndices::Tex[0];
|
||||
params.minFilter = textureParameters::FILTER_NEAREST;
|
||||
params.magFilter = textureParameters::FILTER_NEAREST;
|
||||
|
|
|
@ -106,10 +106,10 @@ void FrameBuffer::_setAndAttachTexture(ObjectHandle _fbo, CachedTexture *_pTextu
|
|||
}
|
||||
gfxContext.init2DTexture(params);
|
||||
}
|
||||
{
|
||||
if (!_multisampling) {
|
||||
Context::TexParameters params;
|
||||
params.handle = _pTexture->name;
|
||||
params.target = _multisampling ? textureTarget::TEXTURE_2D_MULTISAMPLE : textureTarget::TEXTURE_2D;
|
||||
params.target = textureTarget::TEXTURE_2D;
|
||||
params.textureUnitIndex = textureIndices::Tex[_t];
|
||||
params.minFilter = textureParameters::FILTER_NEAREST;
|
||||
params.magFilter = textureParameters::FILTER_NEAREST;
|
||||
|
|
|
@ -1497,8 +1497,6 @@ void TextureCache::activateMSDummy(u32 _t)
|
|||
params.handle = m_pMSDummy->name;
|
||||
params.target = textureTarget::TEXTURE_2D_MULTISAMPLE;
|
||||
params.textureUnitIndex = textureIndices::MSTex[_t];
|
||||
params.minFilter = textureParameters::FILTER_NEAREST;
|
||||
params.magFilter = textureParameters::FILTER_NEAREST;
|
||||
gfxContext.setTextureParameters(params);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user