Changeset 2314


Ignore:
Timestamp:
Feb 2, 2013, 2:06:37 AM (7 years ago)
Author:
sam
Message:

ps3: compilation for old GCC complaining about non-trivial designated
initalisers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/ps3/ps3app.cpp

    r2310 r2314  
    6666    cellSysutilRegisterCallback(0, Ps3AppData::SysCallBack, NULL);
    6767
    68     PSGLinitOptions psglio =
    69     {
    70         enable: PSGL_INIT_MAX_SPUS | PSGL_INIT_INITIALIZE_SPUS
    71                  | PSGL_INIT_HOST_MEMORY_SIZE,
    72         maxSPUs: 1,
    73         initializeSPUs: false,
    74         persistentMemorySize: 0,
    75         transientMemorySize: 0,
    76         errorConsole: 0,
    77         fifoSize: 0,
    78         hostMemorySize: 128 * 1024 * 1024,
    79     };
     68    PSGLinitOptions psglio;
     69    psglio.enable = PSGL_INIT_MAX_SPUS
     70                  | PSGL_INIT_INITIALIZE_SPUS
     71                  | PSGL_INIT_HOST_MEMORY_SIZE;
     72    psglio.maxSPUs = 1;
     73    psglio.initializeSPUs = false;
     74    psglio.hostMemorySize = 128 * 1024 * 1024;
    8075
    8176    psglInit(&psglio);
     
    8984
    9085    PSGLdeviceParameters psgldp =
    91     {
    92         enable: PSGL_DEVICE_PARAMETERS_COLOR_FORMAT
    93               | PSGL_DEVICE_PARAMETERS_DEPTH_FORMAT
    94               | PSGL_DEVICE_PARAMETERS_MULTISAMPLING_MODE
    95               | PSGL_DEVICE_PARAMETERS_WIDTH_HEIGHT,
    96         colorFormat: GL_ARGB_SCE, /* can also be GL_RGBA16F_ARB */
    97         depthFormat: GL_DEPTH_COMPONENT16, /* can also be 24-bit */
    98         multisamplingMode: GL_MULTISAMPLING_4X_SQUARE_ROTATED_SCE,
    99         width: 720,
    100         height: 480,
    101     };
     86    psgldp.enable = PSGL_DEVICE_PARAMETERS_COLOR_FORMAT
     87                  | PSGL_DEVICE_PARAMETERS_DEPTH_FORMAT
     88                  | PSGL_DEVICE_PARAMETERS_MULTISAMPLING_MODE
     89                  | PSGL_DEVICE_PARAMETERS_WIDTH_HEIGHT;
     90    psgldp.colorFormat = GL_ARGB_SCE; /* can also be GL_RGBA16F_ARB */
     91    psgldp.depthFormat = GL_DEPTH_COMPONENT16; /* can also be 24-bit */
     92    psgldp.multisamplingMode = GL_MULTISAMPLING_4X_SQUARE_ROTATED_SCE;
     93    psgldp.width = 720;
     94    psgldp.height = 480;
    10295
    10396    /* Find closest valid resolution */
Note: See TracChangeset for help on using the changeset viewer.