Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set the correct program link parameters #3110

Merged
merged 24 commits into from
Sep 29, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
groundcover.cpp
  • Loading branch information
bosvensson1 committed Sep 14, 2021
commit f5eee590ca549c80d79a549d4dd1c3b8ae3dfec9
2 changes: 1 addition & 1 deletion apps/openmw/mwrender/groundcover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ namespace MWRender
mStateset->setAttribute(new osg::VertexAttribDivisor(6, 1));
mStateset->setAttribute(new osg::VertexAttribDivisor(7, 1));

mProgramTemplate = static_cast<osg::Program*>(mSceneManager->getShaderManager()->getProgramTemplate()->clone(osg::CopyOp::SHALLOW_COPY));
mProgramTemplate = mSceneManager->getShaderManager()->getProgramTemplate() ? static_cast<osg::Program*>(mSceneManager->getShaderManager()->getProgramTemplate()->clone(osg::CopyOp::SHALLOW_COPY)) : new osg::Program;
mProgramTemplate->addBindAttribLocation("aOffset", 6);
mProgramTemplate->addBindAttribLocation("aRotation", 7);
}
Expand Down