summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglcontext.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-01-30 22:45:54 +0800
committerChia-I Wu <[email protected]>2010-01-30 22:57:18 +0800
commit00e1790f3230de550121591d611b47da299ae15c (patch)
treec4772bcf9cee8de57e7a21ef2810e561ee577a6e /src/egl/main/eglcontext.c
parent94cb321b5d246185abf71d89968d472a626f1a23 (diff)
egl: Rename Binding to CurrentContext in _EGLSurface.
A context can be bound to a surface just like it can be bound to a thread. CurrentContext is a more consistent name.
Diffstat (limited to 'src/egl/main/eglcontext.c')
-rw-r--r--src/egl/main/eglcontext.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c
index ee9d60e17a6..37c4b25b68a 100644
--- a/src/egl/main/eglcontext.c
+++ b/src/egl/main/eglcontext.c
@@ -150,13 +150,13 @@ _eglBindContextToSurfaces(_EGLContext *ctx,
{
_EGLSurface *newDraw = *draw, *newRead = *read;
- if (newDraw->Binding)
- newDraw->Binding->DrawSurface = NULL;
- newDraw->Binding = ctx;
+ if (newDraw->CurrentContext)
+ newDraw->CurrentContext->DrawSurface = NULL;
+ newDraw->CurrentContext = ctx;
- if (newRead->Binding)
- newRead->Binding->ReadSurface = NULL;
- newRead->Binding = ctx;
+ if (newRead->CurrentContext)
+ newRead->CurrentContext->ReadSurface = NULL;
+ newRead->CurrentContext = ctx;
if (ctx) {
*draw = ctx->DrawSurface;
@@ -238,8 +238,8 @@ _eglCheckMakeCurrent(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read)
*
* The latter is more restrictive so we can check only the latter case.
*/
- if ((draw->Binding && draw->Binding != ctx) ||
- (read->Binding && read->Binding != ctx))
+ if ((draw->CurrentContext && draw->CurrentContext != ctx) ||
+ (read->CurrentContext && read->CurrentContext != ctx))
return _eglError(EGL_BAD_ACCESS, "eglMakeCurrent");
/* simply require the configs to be equal */