VirtualBox

Ignore:
Timestamp:
Oct 26, 2010 5:23:54 PM (14 years ago)
Author:
vboxsync
Message:

crOpenGL/wddm: multithreading fix

File:
1 edited

Legend:

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

    r27983 r33475  
    6464                                    int *writeback)
    6565{
    66     GET_PACKER_CONTEXT(pc);
     66    CR_GET_PACKER_CONTEXT(pc);
    6767    unsigned char *data_ptr;
    6868    GLint stride = 0;
     
    8989    }
    9090
    91     GET_BUFFERED_POINTER(pc, 48 + sizeof(CRNetworkPointer) );
     91    CR_GET_BUFFERED_POINTER(pc, 48 + sizeof(CRNetworkPointer) );
    9292    WRITE_DATA( 0,  GLint,  x );
    9393    WRITE_DATA( 4,  GLint,  y );
     
    104104    WRITE_NETWORK_POINTER( 48, (char *) pixels );
    105105    WRITE_OPCODE( pc, CR_READPIXELS_OPCODE );
     106    CR_UNLOCK_PACKER_CONTEXT(pc);
    106107}
    107108
     
    205206                                     int * writeback )
    206207{
    207     GET_PACKER_CONTEXT(pc);
     208    CR_GET_PACKER_CONTEXT(pc);
    208209    unsigned char *data_ptr;
    209210    (void) pc;
    210     GET_BUFFERED_POINTER( pc, 40 );
     211    CR_GET_BUFFERED_POINTER( pc, 40 );
    211212    WRITE_DATA( 0, GLint, 40 );
    212213    WRITE_DATA( 4, GLenum, CR_GETTEXIMAGE_EXTEND_OPCODE );
     
    218219    WRITE_NETWORK_POINTER( 32, (void *) writeback );
    219220    WRITE_OPCODE( pc, CR_EXTEND_OPCODE );
    220 }
     221    CR_UNLOCK_PACKER_CONTEXT(pc);
     222}
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