diff options
author | Keith Whitwell <[email protected]> | 2006-07-05 11:10:10 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2006-07-05 11:10:10 +0000 |
commit | 6396b8e5c46eec5f60e75a9780c165c9f778bcca (patch) | |
tree | 265c2be1155b5d495a612fd00000971f87645911 /src/mesa/main/buffers.c | |
parent | 0f2144cd0c4d27603afcdfe8d3b6a64f8c7f5637 (diff) |
fix more problems with getting window/buffer dimensions wrong after binding a new drawable
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index f2ef0eab33b..2f63125f0d8 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -590,11 +590,9 @@ _mesa_ReadBuffer(GLenum buffer) * \note This function should only be called through the GL API, not * from device drivers (as was done in the past). */ -void GLAPIENTRY -_mesa_ResizeBuffersMESA( void ) -{ - GET_CURRENT_CONTEXT(ctx); +void _mesa_resizebuffers( GLcontext *ctx ) +{ ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx ); if (MESA_VERBOSE & VERBOSE_API) @@ -636,6 +634,14 @@ _mesa_ResizeBuffersMESA( void ) ctx->NewState |= _NEW_BUFFERS; /* to update scissor / window bounds */ } +void GLAPIENTRY +_mesa_ResizeBuffersMESA( void ) +{ + GET_CURRENT_CONTEXT(ctx); + + _mesa_resizebuffers( ctx ); +} + /* * XXX move somewhere else someday? |