VirtualBox

Ignore:
Timestamp:
Feb 6, 2009 3:19:05 PM (16 years ago)
Author:
vboxsync
Message:

typecast to prevent warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c

    r15532 r16551  
    908908        if (pContext->attrib.enableStack[i].clip)
    909909        {
    910             rc = crStateAllocAndSSMR3GetMem(pSSM, &pContext->attrib.enableStack[i].clip,
     910            rc = crStateAllocAndSSMR3GetMem(pSSM, (void**)&pContext->attrib.enableStack[i].clip,
    911911                                            pContext->limits.maxClipPlanes*sizeof(GLboolean));
    912912            AssertRCReturn(rc, rc);
     
    915915        if (pContext->attrib.enableStack[i].light)
    916916        {
    917             rc = crStateAllocAndSSMR3GetMem(pSSM, &pContext->attrib.enableStack[i].light,
     917            rc = crStateAllocAndSSMR3GetMem(pSSM, (void**)&pContext->attrib.enableStack[i].light,
    918918                                            pContext->limits.maxLights*sizeof(GLboolean));
    919919            AssertRCReturn(rc, rc);
     
    922922        if (pContext->attrib.lightingStack[i].light)
    923923        {
    924             rc = crStateAllocAndSSMR3GetMem(pSSM, &pContext->attrib.lightingStack[i].light,
     924            rc = crStateAllocAndSSMR3GetMem(pSSM, (void**)&pContext->attrib.lightingStack[i].light,
    925925                                            pContext->limits.maxLights*sizeof(CRLight));
    926926            AssertRCReturn(rc, rc);
     
    935935        if (pContext->attrib.transformStack[i].clip)
    936936        {
    937             rc = crStateAllocAndSSMR3GetMem(pSSM, &pContext->attrib.transformStack[i].clip,
     937            rc = crStateAllocAndSSMR3GetMem(pSSM, (void*)&pContext->attrib.transformStack[i].clip,
    938938                                            pContext->limits.maxClipPlanes*sizeof(GLboolean));
    939939            AssertRCReturn(rc, rc);
     
    942942        if (pContext->attrib.transformStack[i].clipPlane)
    943943        {
    944             rc = crStateAllocAndSSMR3GetMem(pSSM, &pContext->attrib.transformStack[i].clipPlane,
     944            rc = crStateAllocAndSSMR3GetMem(pSSM, (void**)&pContext->attrib.transformStack[i].clipPlane,
    945945                                            pContext->limits.maxClipPlanes*sizeof(GLvectord));
    946946            AssertRCReturn(rc, rc);
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