Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
064603ad
Commit
064603ad
authored
Sep 06, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1748 from paroj:ovis_texup
parents
386f52c7
f9bef184
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
ovis.cpp
modules/ovis/src/ovis.cpp
+16
-8
No files found.
modules/ovis/src/ovis.cpp
View file @
064603ad
...
...
@@ -359,18 +359,26 @@ public:
void
setCompositors
(
const
std
::
vector
<
String
>&
names
)
{
Viewport
*
vp
=
frameSrc
->
getViewport
(
0
);
CompositorManager
&
cm
=
CompositorManager
::
getSingleton
();
// this should be applied to all owned render targets
Ogre
::
RenderTarget
*
targets
[]
=
{
frameSrc
,
rWin
,
depthRTT
};
cm
.
removeCompositorChain
(
vp
);
// remove previous configuration
for
(
size_t
i
=
0
;
i
<
names
.
size
();
i
++
)
for
(
int
j
=
0
;
j
<
3
;
j
++
)
{
if
(
!
cm
.
addCompositor
(
vp
,
names
[
i
]))
{
LogManager
::
getSingleton
().
logError
(
"Failed to add compositor: "
+
names
[
i
]);
continue
;
Ogre
::
RenderTarget
*
tgt
=
targets
[
j
];
if
(
!
tgt
||
(
frameSrc
==
rWin
&&
tgt
==
rWin
))
continue
;
Viewport
*
vp
=
tgt
->
getViewport
(
0
);
cm
.
removeCompositorChain
(
vp
);
// remove previous configuration
for
(
size_t
i
=
0
;
i
<
names
.
size
();
i
++
)
{
if
(
!
cm
.
addCompositor
(
vp
,
names
[
i
]))
{
LogManager
::
getSingleton
().
logError
(
"Failed to add compositor: "
+
names
[
i
]);
continue
;
}
cm
.
setCompositorEnabled
(
vp
,
names
[
i
],
true
);
}
cm
.
setCompositorEnabled
(
vp
,
names
[
i
],
true
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment