VirtualBox

Changeset 56947 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 15, 2015 7:12:26 PM (10 years ago)
Author:
vboxsync
Message:

vmsvga3dShaderSet: Restore fix, i.e. when pContext is not NULL.

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp

    r56236 r56947  
    76617661    Log(("vmsvga3dShaderSet cid=%x type=%s shid=%d\n", cid, (type == SVGA3D_SHADERTYPE_VS) ? "VERTEX" : "PIXEL", shid));
    76627662
    7663     if (  !pContext
     7663    if (   !pContext
    76647664        && cid < pState->cContexts
    76657665        && pState->papContexts[cid]->id == cid)
    76667666        pContext = pState->papContexts[cid];
    7667     else
    7668     {
     7667    else if (!pContext)
     7668    {
     7669        AssertMsgFailed(("cid=%#x cContexts=%#x\n", cid, pState->cContexts));
    76697670        Log(("vmsvga3dShaderSet invalid context id!\n"));
    76707671        return VERR_INVALID_PARAMETER;
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-shared.h

    r56292 r56947  
    1414 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1515 */
    16 #ifndef __DEVVMWARE3D_STATE_H__
    17 #define __DEVVMWARE3D_STATE_H__
     16
     17#ifndef ___DevVGA_SVGA3d_shared_h___
     18#define ___DevVGA_SVGA3d_shared_h___
    1819
    1920int vmsvga3dLoadExec(PVGASTATE pThis, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)
     
    810811
    811812
    812 #endif  /* __DEVVMWARE3D_STATE_H__ */
     813#endif /* !___DevVGA_SVGA3d_shared_h___ */
     814
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