VirtualBox

Ignore:
Timestamp:
Apr 2, 2009 1:49:59 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45557
Message:

crOpenGL: add seamless mode clip regions to opengl ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp

    r17021 r18637  
    412412            break;
    413413        }
     414        case SHCRGL_HOST_FN_SET_VISIBLE_REGION:
     415        {
     416            Log(("svcCall: SHCRGL_HOST_FN_SET_VISIBLE_REGION\n"));
     417
     418            if (cParms != SHCRGL_CPARMS_SET_VISIBLE_REGION)
     419            {
     420                rc = VERR_INVALID_PARAMETER;
     421                break;
     422            }
     423
     424            if (    paParms[0].type != VBOX_HGCM_SVC_PARM_PTR     /* pRects */
     425                 || paParms[1].type != VBOX_HGCM_SVC_PARM_32BIT   /* cRects */
     426               )
     427            {
     428                rc = VERR_INVALID_PARAMETER;
     429                break;
     430            }
     431
     432            Assert(sizeof(RTRECT)==4*sizeof(GLint));
     433
     434            renderspuSetRootVisibleRegion(paParms[1].u.uint32, (GLint*)paParms[0].u.pointer.addr);
     435            break;
     436        }
    414437        default:
    415438            rc = VERR_NOT_IMPLEMENTED;
Note: See TracChangeset for help on using the changeset viewer.

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