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
5bb6d366
Commit
5bb6d366
authored
Jun 13, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Jun 13, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #982 from pengx17:2.4_fix_two_bugs
parents
462047d1
d9ab22e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
initialization.cpp
modules/ocl/src/initialization.cpp
+1
-3
No files found.
modules/ocl/src/initialization.cpp
View file @
5bb6d366
...
...
@@ -930,8 +930,6 @@ namespace cv
clCxt
.
reset
(
new
Context
);
std
::
vector
<
Info
>
oclinfo
;
CV_Assert
(
getDevice
(
oclinfo
,
CVCL_DEVICE_TYPE_ALL
)
>
0
);
oclinfo
[
0
].
impl
->
setDevice
(
0
,
0
,
0
);
clCxt
.
get
()
->
impl
=
oclinfo
[
0
].
impl
->
copy
();
*
((
volatile
int
*
)
&
val
)
=
1
;
}
...
...
@@ -1056,7 +1054,7 @@ BOOL WINAPI DllMain( HINSTANCE, DWORD fdwReason, LPVOID )
Context
*
cv_ctx
=
Context
::
getContext
();
if
(
cv_ctx
)
{
cl_context
ctx
=
(
cl_context
)
&
(
cv_ctx
->
impl
->
oclcontext
)
;
cl_context
ctx
=
cv_ctx
->
impl
->
oclcontext
;
if
(
ctx
)
openCLSafeCall
(
clReleaseContext
(
ctx
));
}
...
...
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