Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
a0771630
Commit
a0771630
authored
Sep 09, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restored original behaviour or release functions for (Buffer and Texture)
parent
b7eff941
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
opengl_interop.rst
modules/core/doc/opengl_interop.rst
+4
-0
opengl.cpp
modules/core/src/opengl.cpp
+4
-0
No files found.
modules/core/doc/opengl_interop.rst
View file @
a0771630
...
...
@@ -122,6 +122,8 @@ Decrements the reference counter and destroys the buffer object if needed.
.. ocv:function:: void ogl::Buffer::release()
The function will call `setAutoRelease(true)` .
ogl::Buffer::setAutoRelease
...
...
@@ -323,6 +325,8 @@ Decrements the reference counter and destroys the texture object if needed.
.. ocv:function:: void ogl::Texture2D::release()
The function will call `setAutoRelease(true)` .
ogl::Texture2D::setAutoRelease
...
...
modules/core/src/opengl.cpp
View file @
a0771630
...
...
@@ -563,6 +563,8 @@ void cv::ogl::Buffer::create(int arows, int acols, int atype, Target target, boo
void
cv
::
ogl
::
Buffer
::
release
()
{
#ifdef HAVE_OPENGL
if
(
impl_
)
impl_
->
setAutoRelease
(
true
);
impl_
=
Impl
::
empty
();
rows_
=
0
;
cols_
=
0
;
...
...
@@ -1081,6 +1083,8 @@ void cv::ogl::Texture2D::create(int arows, int acols, Format aformat, bool autoR
void
cv
::
ogl
::
Texture2D
::
release
()
{
#ifdef HAVE_OPENGL
if
(
impl_
)
impl_
->
setAutoRelease
(
true
);
impl_
=
Impl
::
empty
();
rows_
=
0
;
cols_
=
0
;
...
...
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