Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dreveman:openSUSE:11.1:cr
cr
cr-pack-delete-queries.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cr-pack-delete-queries.diff of Package cr
commit 830c796ca110abe2677f4169c17336f468cd4f49 Author: David Reveman <davidr@novell.com> Date: Fri Apr 3 16:16:10 2009 -0400 Add proper crPackDeleteQueriesARB implementation. diff --git a/packer/Makefile b/packer/Makefile index 48fe876..2a76c73 100644 --- a/packer/Makefile +++ b/packer/Makefile @@ -28,6 +28,7 @@ NORMAL_FILES = packer \ pack_lists \ pack_swap_lists \ pack_map \ + pack_occlude \ pack_point \ pack_swap_map \ pack_misc \ @@ -55,6 +56,7 @@ SWAP_FILES = pack_arrays \ pack_materials \ pack_matrices \ pack_misc \ + pack_occlude \ pack_pixels \ pack_point \ pack_program \ diff --git a/packer/pack_occlude.c b/packer/pack_occlude.c new file mode 100644 index 0000000..5638005 --- /dev/null +++ b/packer/pack_occlude.c @@ -0,0 +1,24 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#include "packer.h" +#include "cr_error.h" + +void PACK_APIENTRY crPackDeleteQueriesARB( GLsizei n, const GLuint * ids ) +{ + unsigned char *data_ptr; + int packet_length = sizeof(GLenum) + sizeof(n) + n * sizeof(*ids); + + if (!ids) + return; + + data_ptr = (unsigned char *) crPackAlloc(packet_length); + WRITE_DATA( 0, GLenum, CR_DELETEQUERIESARB_EXTEND_OPCODE ); + WRITE_DATA( 4, GLsizei, n ); + crMemcpy( data_ptr + 8, ids, n * sizeof(*ids) ); + crHugePacket( CR_EXTEND_OPCODE, data_ptr ); + crPackFree( data_ptr ); +} diff --git a/packer/packer_special b/packer/packer_special index 85c2ccf..998ea8f 100644 --- a/packer/packer_special +++ b/packer/packer_special @@ -138,4 +138,5 @@ BufferSubDataARB MapBufferARB UnmapBufferARB DeleteBuffersARB +DeleteQueriesARB ZPixCR
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor