VirtualBox

Changeset 21845 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Jul 28, 2009 2:21:04 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: fix crash in SecondLife

Location:
trunk/src/VBox/GuestHost/OpenGL/packer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_misc.c

    r15532 r21845  
    9393        }
    9494}
     95
     96void PACK_APIENTRY crPackDeleteQueriesARB(GLsizei n, const GLuint * ids)
     97{
     98    unsigned char *data_ptr;
     99    int packet_length = sizeof(GLenum)+sizeof(n)+n*sizeof(*ids);
     100        GET_PACKER_CONTEXT(pc);
     101    if (!ids) return;
     102    data_ptr = (unsigned char *) crPackAlloc(packet_length);
     103    WRITE_DATA(0, GLenum, CR_DELETEQUERIESARB_EXTEND_OPCODE);
     104    WRITE_DATA(4, GLsizei, n);
     105    crMemcpy(data_ptr + 8, ids, n*sizeof(*ids));
     106    crHugePacket(CR_EXTEND_OPCODE, data_ptr);
     107    crPackFree(data_ptr);
     108}
  • trunk/src/VBox/GuestHost/OpenGL/packer/packer_special

    r21422 r21845  
    166166GetInfoLogARB
    167167GetBufferSubDataARB
     168DeleteQueriesARB
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette