VirtualBox

Changeset 16073 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Jan 20, 2009 9:59:13 AM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: tabs to spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/array/arrayspu_init.c

    r15532 r16073  
    1414
    1515static SPUFunctions array_functions = {
    16         NULL, /* CHILD COPY */
    17         NULL, /* DATA */
    18         _cr_array_table /* THE ACTUAL FUNCTIONS */
     16    NULL, /* CHILD COPY */
     17    NULL, /* DATA */
     18    _cr_array_table /* THE ACTUAL FUNCTIONS */
    1919};
    2020
    2121static SPUFunctions *arraySPUInit( int id, SPU *child, SPU *self,
    22                 unsigned int context_id,
    23                 unsigned int num_contexts )
     22        unsigned int context_id,
     23        unsigned int num_contexts )
    2424{
    2525
    26         (void) context_id;
    27         (void) num_contexts;
     26    (void) context_id;
     27    (void) num_contexts;
    2828
    29         array_spu.id = id;
    30         array_spu.has_child = 0;
    31         if (child)
    32         {
    33                 crSPUInitDispatchTable( &(array_spu.child) );
    34                 crSPUCopyDispatchTable( &(array_spu.child), &(child->dispatch_table) );
    35                 array_spu.has_child = 1;
    36         }
    37         crSPUInitDispatchTable( &(array_spu.super) );
    38         crSPUCopyDispatchTable( &(array_spu.super), &(self->superSPU->dispatch_table) );
    39         arrayspuSetVBoxConfiguration();
     29    array_spu.id = id;
     30    array_spu.has_child = 0;
     31    if (child)
     32    {
     33        crSPUInitDispatchTable( &(array_spu.child) );
     34        crSPUCopyDispatchTable( &(array_spu.child), &(child->dispatch_table) );
     35        array_spu.has_child = 1;
     36    }
     37    crSPUInitDispatchTable( &(array_spu.super) );
     38    crSPUCopyDispatchTable( &(array_spu.super), &(self->superSPU->dispatch_table) );
     39    arrayspuSetVBoxConfiguration();
    4040
    41         crStateInit();
    42         array_spu.ctx = crStateCreateContext( NULL, 0, NULL );
     41    crStateInit();
     42    array_spu.ctx = crStateCreateContext( NULL, 0, NULL );
    4343#ifdef CR_ARB_vertex_buffer_object
    44         array_spu.ctx->bufferobject.retainBufferData = GL_TRUE;
     44    array_spu.ctx->bufferobject.retainBufferData = GL_TRUE;
    4545#endif
    46         /* we call SetCurrent instead of MakeCurrent as the differencer
    47         * isn't setup yet anyway */
    48         crStateSetCurrent( array_spu.ctx );
     46    /* we call SetCurrent instead of MakeCurrent as the differencer
     47    * isn't setup yet anyway */
     48    crStateSetCurrent( array_spu.ctx );
    4949
    50         return &array_functions;
     50    return &array_functions;
    5151}
    5252
    5353static void arraySPUSelfDispatch(SPUDispatchTable *self)
    5454{
    55         crSPUInitDispatchTable( &(array_spu.self) );
    56         crSPUCopyDispatchTable( &(array_spu.self), self );
     55    crSPUInitDispatchTable( &(array_spu.self) );
     56    crSPUCopyDispatchTable( &(array_spu.self), self );
    5757}
    5858
    5959static int arraySPUCleanup(void)
    6060{
    61         return 1;
     61    return 1;
    6262}
    6363
    6464int SPULoad( char **name, char **super, SPUInitFuncPtr *init,
    65              SPUSelfDispatchFuncPtr *self, SPUCleanupFuncPtr *cleanup,
    66              SPUOptionsPtr *options, int *flags )
     65         SPUSelfDispatchFuncPtr *self, SPUCleanupFuncPtr *cleanup,
     66         SPUOptionsPtr *options, int *flags )
    6767{
    68         *name = "array";
    69         *super = "passthrough";
    70         *init = arraySPUInit;
    71         *self = arraySPUSelfDispatch;
    72         *cleanup = arraySPUCleanup;
    73         *options = arraySPUOptions;
    74         *flags = (SPU_NO_PACKER|SPU_NOT_TERMINAL|SPU_MAX_SERVERS_ZERO);
    75        
    76         return 1;
     68    *name = "array";
     69    *super = "passthrough";
     70    *init = arraySPUInit;
     71    *self = arraySPUSelfDispatch;
     72    *cleanup = arraySPUCleanup;
     73    *options = arraySPUOptions;
     74    *flags = (SPU_NO_PACKER|SPU_NOT_TERMINAL|SPU_MAX_SERVERS_ZERO);
     75   
     76    return 1;
    7777}
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