Skip to content

Commit 8966b52

Browse files
committed
Merge branch 'bug8465' into 'master'
Bug 8465: Fix anti-aliasing on macOS Closes #8465 See merge request OpenMW/openmw!4665
2 parents 1f724cc + 2bcbb2d commit 8966b52

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ Programmers
232232
Tess (tescoShoppah)
233233
thegriglat
234234
Thomas Luppi (Digmaster)
235+
Tim Hagberg (hazardMan)
235236
tlmullis
236237
trav
237238
tri4ng1e

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@
233233
Bug #8441: Freeze when using video main menu replacers
234234
Bug #8445: Launcher crashes on exit when cell name loading thread is still running
235235
Bug #8462: Crashes when resizing the window on macOS
236+
Bug #8465: Blue screen w/ antialiasing and post-processing on macOS
236237
Feature #1415: Infinite fall failsafe
237238
Feature #2566: Handle NAM9 records for manual cell references
238239
Feature #3501: OpenMW-CS: Instance Editing - Shortcuts for axial locking

apps/openmw/mwrender/postprocessor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ namespace MWRender
503503
if (mSamples > 1)
504504
{
505505
fbos[FBO_Multisample] = new osg::FrameBufferObject;
506+
fbos[FBO_Intercept] = new osg::FrameBufferObject;
506507
auto colorRB = createFrameBufferAttachmentFromTemplate(
507508
Usage::RENDER_BUFFER, width, height, textures[Tex_Scene], mSamples);
508509
if (mNormals && mNormalsSupported)
@@ -511,6 +512,8 @@ namespace MWRender
511512
Usage::RENDER_BUFFER, width, height, textures[Tex_Normal], mSamples);
512513
fbos[FBO_Multisample]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1, normalRB);
513514
fbos[FBO_FirstPerson]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1, normalRB);
515+
fbos[FBO_Intercept]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1,
516+
Stereo::createMultiviewCompatibleAttachment(textures[Tex_Normal]));
514517
}
515518
auto depthRB = createFrameBufferAttachmentFromTemplate(
516519
Usage::RENDER_BUFFER, width, height, textures[Tex_Depth], mSamples);
@@ -519,11 +522,8 @@ namespace MWRender
519522
osg::FrameBufferObject::BufferComponent::PACKED_DEPTH_STENCIL_BUFFER, depthRB);
520523
fbos[FBO_FirstPerson]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER0, colorRB);
521524

522-
fbos[FBO_Intercept] = new osg::FrameBufferObject;
523525
fbos[FBO_Intercept]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER0,
524526
Stereo::createMultiviewCompatibleAttachment(textures[Tex_Scene]));
525-
fbos[FBO_Intercept]->setAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1,
526-
Stereo::createMultiviewCompatibleAttachment(textures[Tex_Normal]));
527527
}
528528
else
529529
{

0 commit comments

Comments
 (0)