Skip to content

Commit 885bbc6

Browse files
author
kallaballa
committed
renaming
1 parent dceeb47 commit 885bbc6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

modules/core/src/opengl.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,25 +1684,25 @@ Context& initializeContextFromGL()
16841684
if (status != CL_SUCCESS)
16851685
continue;
16861686

1687-
std::string stdDevString(extensions);
1687+
std::string devString(extensions);
16881688
free(extensions);
16891689

16901690

1691-
size_t szOldPos = 0;
1692-
size_t szSpacePos = stdDevString.find(' ', szOldPos); // extensions string is space delimited
1693-
while (szSpacePos != stdDevString.npos) {
1691+
size_t oldPos = 0;
1692+
size_t spacePos = devString.find(' ', oldPos); // extensions string is space delimited
1693+
while (spacePos != devString.npos) {
16941694
if (strcmp(GL_SHARING_EXTENSION,
1695-
stdDevString.substr(szOldPos, szSpacePos - szOldPos).c_str())
1695+
devString.substr(oldPos, spacePos - oldPos).c_str())
16961696
== 0) {
16971697
// Device supports context sharing with OpenGL
16981698
devUsed = i;
16991699
sharingSupported = true;
17001700
break;
17011701
}
17021702
do {
1703-
szOldPos = szSpacePos + 1;
1704-
szSpacePos = stdDevString.find(' ', szOldPos);
1705-
} while (szSpacePos == szOldPos);
1703+
oldPos = spacePos + 1;
1704+
spacePos = devString.find(' ', oldPos);
1705+
} while (spacePos == oldPos);
17061706
}
17071707
}
17081708
}
@@ -1713,11 +1713,11 @@ Context& initializeContextFromGL()
17131713

17141714
// Define OS-specific context properties and create the OpenCL context
17151715
#if defined (__APPLE__)
1716-
CGLContextObj kCGLContext = CGLGetCurrentContext();
1717-
CGLShareGroupObj kCGLShareGroup = CGLGetShareGroup(kCGLContext);
1716+
CGLContextObj cglContext = CGLGetCurrentContext();
1717+
CGLShareGroupObj cglShareGroup = CGLGetShareGroup(cglContext);
17181718
cl_context_properties props[] =
17191719
{
1720-
CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE, (cl_context_properties)kCGLShareGroup,
1720+
CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE, (cl_context_properties)cglShareGroup,
17211721
0
17221722
};
17231723
context = clCreateContext(props, 0,0, NULL, NULL, &ciErrNum);

0 commit comments

Comments
 (0)