pack_bounds.c revision 612ab06c3d17ed10137724a3745004d09566f53a
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "packer.h"
#include "cr_opcodes.h"
#include "cr_mem.h"
void PACK_APIENTRY crPackBoundsInfoCR( CR_PACKER_CONTEXT_ARGDECL const CRrecti *bounds, const GLbyte *payload, GLint len, GLint num_opcodes )
{
/* Don't get the buffered_ptr here because we've already
* verified that there's enough space for everything. */
unsigned char *data_ptr;
int len_aligned, total_len;
WRITE_DATA( 0, int, total_len );
/* skip the BOUNDSINFO */
data_ptr += 24;
/* put in padding opcodes (deliberately bogus) */
switch ( len_aligned - len )
{
default: break;
}
}