VirtualBox

Changeset 40318 in vbox for trunk


Ignore:
Timestamp:
Mar 2, 2012 7:58:50 AM (13 years ago)
Author:
vboxsync
Message:

HostServices/SharedOpenGL: a few warnings

Location:
trunk/src/VBox/HostServices/SharedOpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c

    r39603 r40318  
    15781578
    15791579                uint32_t cbWriteback = pWbBuf->cbBuffer;
    1580                 uint8_t *pWriteback  = VBOXCRHGSMI_PTR_SAFE(pWbBuf->offBuffer, cbWriteback, uint8_t);
     1580                char *pWriteback  = VBOXCRHGSMI_PTR_SAFE(pWbBuf->offBuffer, cbWriteback, char);
    15811581
    15821582                if (cbHdr < sizeof (*pFnCmd))
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_stream.c

    r39288 r40318  
    440440        {
    441441            uint32_t cbWriteback = pCmdData->cbWriteback;
    442             rc = crVBoxServerInternalClientRead(conn->pClient, pCmdData->pWriteback, &cbWriteback);
     442            rc = crVBoxServerInternalClientRead(conn->pClient, (uint8_t*)pCmdData->pWriteback, &cbWriteback);
    443443            CRASSERT(rc == VINF_SUCCESS || rc == VERR_BUFFER_OVERFLOW);
    444444            *pCmdData->pcbWriteback = cbWriteback;
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c

    r38964 r40318  
    363363    {
    364364        GLfloat version;
    365         version = crStrToFloat((char *) render_spu.ws.glGetString(GL_VERSION));
    366 
    367         if (version>=2.f || crStrstr(render_spu.ws.glGetString(GL_EXTENSIONS), "GL_ARB_vertex_shader"))
     365        version = crStrToFloat((const char *) render_spu.ws.glGetString(GL_VERSION));
     366
     367        if (version>=2.f || crStrstr((const char*)render_spu.ws.glGetString(GL_EXTENSIONS), "GL_ARB_vertex_shader"))
    368368        {
    369369            GLint mu=0;
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