mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
apply same logic to render targets, remove UB
This commit is contained in:
parent
dec120f38c
commit
85fcfbafda
8 changed files with 76 additions and 30 deletions
|
@ -12,7 +12,6 @@
|
|||
#include <osg/StateSet>
|
||||
|
||||
#include <components/resource/scenemanager.hpp>
|
||||
#include <components/sceneutil/clearcolor.hpp>
|
||||
#include <components/sceneutil/lightmanager.hpp>
|
||||
#include <components/settings/values.hpp>
|
||||
#include <components/stereo/multiview.hpp>
|
||||
|
@ -326,9 +325,6 @@ float omw_EstimateFogCoverageFromUV(vec2 uv)
|
|||
|
||||
if (mBlendEq)
|
||||
stateSet->setAttributeAndModes(new osg::BlendEquation(mBlendEq.value()));
|
||||
|
||||
if (mClearColor)
|
||||
stateSet->setAttributeAndModes(new SceneUtil::ClearColor(mClearColor.value(), GL_COLOR_BUFFER_BIT));
|
||||
}
|
||||
|
||||
void Pass::dirty()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue