mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-01 20:41:32 +00:00
Merge branch 'bug8465' into 'master'
Bug 8465: Fix anti-aliasing on macOS Closes #8465 See merge request OpenMW/openmw!4665
This commit is contained in:
commit
8966b5292b
3 changed files with 5 additions and 3 deletions
|
@ -232,6 +232,7 @@ Programmers
|
|||
Tess (tescoShoppah)
|
||||
thegriglat
|
||||
Thomas Luppi (Digmaster)
|
||||
Tim Hagberg (hazardMan)
|
||||
tlmullis
|
||||
trav
|
||||
tri4ng1e
|
||||
|
|
|
@ -233,6 +233,7 @@
|
|||
Bug #8441: Freeze when using video main menu replacers
|
||||
Bug #8445: Launcher crashes on exit when cell name loading thread is still running
|
||||
Bug #8462: Crashes when resizing the window on macOS
|
||||
Bug #8465: Blue screen w/ antialiasing and post-processing on macOS
|
||||
Feature #1415: Infinite fall failsafe
|
||||
Feature #2566: Handle NAM9 records for manual cell references
|
||||
Feature #3501: OpenMW-CS: Instance Editing - Shortcuts for axial locking
|
||||
|
|
|
@ -503,6 +503,7 @@ namespace MWRender
|
|||
if (mSamples > 1)
|
||||
{
|
||||
fbos[FBO_Multisample] = new osg::FrameBufferObject;
|
||||
fbos[FBO_Intercept] = new osg::FrameBufferObject;
|
||||
auto colorRB = createFrameBufferAttachmentFromTemplate(
|
||||
Usage::RENDER_BUFFER, width, height, textures[Tex_Scene], mSamples);
|
||||
if (mNormals && mNormalsSupported)
|
||||
|
@ -511,6 +512,8 @@ namespace MWRender
|
|||
Usage::RENDER_BUFFER, width, height, textures[Tex_Normal], mSamples);
|
||||
fbos[FBO_Multisample]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1, normalRB);
|
||||
fbos[FBO_FirstPerson]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1, normalRB);
|
||||
fbos[FBO_Intercept]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1,
|
||||
Stereo::createMultiviewCompatibleAttachment(textures[Tex_Normal]));
|
||||
}
|
||||
auto depthRB = createFrameBufferAttachmentFromTemplate(
|
||||
Usage::RENDER_BUFFER, width, height, textures[Tex_Depth], mSamples);
|
||||
|
@ -519,11 +522,8 @@ namespace MWRender
|
|||
osg::FrameBufferObject::BufferComponent::PACKED_DEPTH_STENCIL_BUFFER, depthRB);
|
||||
fbos[FBO_FirstPerson]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER0, colorRB);
|
||||
|
||||
fbos[FBO_Intercept] = new osg::FrameBufferObject;
|
||||
fbos[FBO_Intercept]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER0,
|
||||
Stereo::createMultiviewCompatibleAttachment(textures[Tex_Scene]));
|
||||
fbos[FBO_Intercept]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1,
|
||||
Stereo::createMultiviewCompatibleAttachment(textures[Tex_Normal]));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue