VirtualBox

Changeset 31003 in vbox


Ignore:
Timestamp:
Jul 22, 2010 2:53:11 PM (15 years ago)
Author:
vboxsync
Message:

2d: bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp

    r30394 r31003  
    470470int VBoxVHWAGlShader::init()
    471471{
    472     int rc;
     472    int rc = VERR_GENERAL_FAILURE;
    473473    GLint *length;
    474474    const char **sources;
     
    481481        AssertRC(rc);
    482482        if(RT_FAILURE(rc))
    483             return rc;
     483            goto exit;
    484484        sources[i] = maComponents[i]->contents();
    485485    }
     
    512512    vboxglGetShaderInfoLog(mShader, 16300, NULL, pBuf);
    513513    VBOXQGLLOG(("\ncompile log:\n-----------\n%s\n---------\n", pBuf));
    514     delete pBuf;
     514    delete[] pBuf;
    515515#endif
    516516
     
    518518    if(compiled)
    519519    {
    520         return VINF_SUCCESS;
     520        rc = VINF_SUCCESS;
     521        goto exit;
    521522    }
    522523
     
    527528    mShader = 0;
    528529
     530exit:
    529531    delete[] length;
    530532    delete[] sources;
    531     return VERR_GENERAL_FAILURE;
     533    return rc;
    532534}
    533535
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