mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Merge branch 'distortion_clear' into 'master'
distortion - make sure color mask is enabled for clear to have an effect (#8082) See merge request OpenMW/openmw!4294
This commit is contained in:
commit
6cc2b8de27
@ -24,6 +24,8 @@ namespace MWRender
|
||||
|
||||
glViewport(0, 0, tex->getTextureWidth(), tex->getTextureHeight());
|
||||
glClearColor(0.0, 0.0, 0.0, 1.0);
|
||||
glColorMask(true, true, true, true);
|
||||
state->haveAppliedAttribute(osg::StateAttribute::Type::COLORMASK);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
bin->drawImplementation(renderInfo, previous);
|
||||
|
Loading…
Reference in New Issue
Block a user