diff options
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 6f4a51e1072..3031c6c9f07 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -591,11 +591,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) @@ -637,6 +635,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? |