diff options
author | Brian Paul <[email protected]> | 2009-06-01 15:01:33 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-01 15:01:33 -0600 |
commit | 9f6ec50f8c79283583eeebdebd16bf7dcd134816 (patch) | |
tree | fe3e906dda57e8ad35137af941b0a86aa79c7031 /src/mesa/main/context.c | |
parent | 1fa023ae48c31176434f5ad4691eae347e7a395f (diff) | |
parent | 0e8a5a84742adf6e99236f246c77325fad174204 (diff) |
Merge branch 'mesa_7_5_branch'
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index ff9dd488c74..ad47e22580b 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1259,7 +1259,7 @@ initialize_framebuffer_size(GLcontext *ctx, GLframebuffer *fb) * \param drawBuffer the drawing framebuffer * \param readBuffer the reading framebuffer */ -void +GLboolean _mesa_make_current( GLcontext *newCtx, GLframebuffer *drawBuffer, GLframebuffer *readBuffer ) { @@ -1272,14 +1272,14 @@ _mesa_make_current( GLcontext *newCtx, GLframebuffer *drawBuffer, if (!check_compatible(newCtx, drawBuffer)) { _mesa_warning(newCtx, "MakeCurrent: incompatible visuals for context and drawbuffer"); - return; + return GL_FALSE; } } if (newCtx && readBuffer && newCtx->WinSysReadBuffer != readBuffer) { if (!check_compatible(newCtx, readBuffer)) { _mesa_warning(newCtx, "MakeCurrent: incompatible visuals for context and readbuffer"); - return; + return GL_FALSE; } } @@ -1384,6 +1384,8 @@ _mesa_make_current( GLcontext *newCtx, GLframebuffer *drawBuffer, newCtx->FirstTimeCurrent = GL_FALSE; } } + + return GL_TRUE; } |