static void gammaDDViewport( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height ) { /* update size of Mesa/software ancillary buffers */ _mesa_ResizeBuffersMESA(); gammaUpdateWindow( ctx ); }
void gammaDDUpdateHWState( GLcontext *ctx ) { gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); int new_state = gmesa->new_state; if ( new_state ) { FLUSH_BATCH( gmesa ); gmesa->new_state = 0; /* Update the various parts of the context's state. */ if ( new_state & GAMMA_NEW_ALPHA ) gammaUpdateAlphaMode( ctx ); if ( new_state & GAMMA_NEW_DEPTH ) gammaUpdateZMode( ctx ); if ( new_state & GAMMA_NEW_FOG ) gammaUpdateFogAttrib( ctx ); if ( new_state & GAMMA_NEW_CLIP ) gammaUpdateClipping( ctx ); if ( new_state & GAMMA_NEW_POLYGON ) gammaUpdatePolygon( ctx ); if ( new_state & GAMMA_NEW_CULL ) gammaUpdateCull( ctx ); if ( new_state & GAMMA_NEW_MASKS ) gammaUpdateMasks( ctx ); if ( new_state & GAMMA_NEW_WINDOW ) gammaUpdateWindow( ctx ); if ( new_state & GAMMA_NEW_STIPPLE ) gammaUpdateStipple( ctx ); } /* HACK ! */ gammaEmitHwState( gmesa ); }
static void gammaDDDepthRange( GLcontext *ctx, GLclampd nearval, GLclampd farval ) { gammaUpdateWindow( ctx ); }
static void gammaDDViewport( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height ) { gammaUpdateWindow( ctx ); }