VirtualBox

Changeset 3436 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jul 5, 2007 8:36:51 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22646
Message:

Propagate error through the right channel

Location:
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/OGLComplexSync.cpp

    r3432 r3436  
    6161    }
    6262    VBOX_OGL_GEN_SYNC_OP6_RET(HGLRC, DrvCreateContext, hdc, cx, cy, pfd.cColorBits, pfd.iPixelType, pfd.cDepthBits);
     63    /* Propagate error through the right channel */
     64    SetLastError(glGetError());
    6365    return retval;
    6466}
     
    100102
    101103    VBOX_OGL_GEN_SYNC_OP7_RET(HGLRC, DrvCreateLayerContext, hdc, iLayerPlane, cx, cy, pfd.cColorBits, pfd.iPixelType, pfd.cDepthBits);
     104    /* Propagate error through the right channel */
     105    SetLastError(glGetError());
    102106    return retval;
    103107}
     
    108112{
    109113    VBOX_OGL_GEN_SYNC_OP5_PASS_PTR_RET(BOOL, DrvDescribeLayerPlane, hdc, iPixelFormat, iLayerPlane, nBytes, nBytes, plpd);
     114    /* Propagate error through the right channel */
     115    SetLastError(glGetError());
    110116    return retval;
    111117}
     
    116122{
    117123    VBOX_OGL_GEN_SYNC_OP5_PASS_PTR_RET(int, DrvGetLayerPaletteEntries, hdc, iLayerPlane, iStart, cEntries, sizeof(COLORREF)*cEntries, pcr);
     124    /* Propagate error through the right channel */
     125    SetLastError(glGetError());
    118126    return retval;
    119127}
     
    123131    /* if ppfd == NULL, then DrvDescribelayerPlane returns the maximum nr of supported pixel formats */
    124132    VBOX_OGL_GEN_SYNC_OP4_PASS_PTR_RET(int, DrvDescribePixelFormat, hdc, iPixelFormat, nBytes, nBytes, ppfd);
     133    /* Propagate error through the right channel */
     134    SetLastError(glGetError());
    125135    return retval;
    126136}
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/OGLSimpleSync.cpp

    r3419 r3436  
    2727{
    2828    VBOX_OGL_GEN_SYNC_OP1_RET(BOOL, DrvDeleteContext, hglrc);
     29    /* Propagate error through the right channel */
     30    SetLastError(glGetError());
    2931    return retval;
    3032}
     
    3335{
    3436    VBOX_OGL_GEN_SYNC_OP3_RET(BOOL, DrvCopyContext, hglrcSrc, hglrcDst, mask);
     37    /* Propagate error through the right channel */
     38    SetLastError(glGetError());
    3539    return retval;
    3640}
     
    3943{
    4044    VBOX_OGL_GEN_SYNC_OP1(DrvReleaseContext, hglrc);
     45    /* Propagate error through the right channel */
     46    SetLastError(glGetError());
    4147}
    4248
     
    4450{
    4551    VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvShareLists, hglrc1, hglrc2);
     52    /* Propagate error through the right channel */
     53    SetLastError(glGetError());
    4654    return retval;
    4755}
     
    5260{
    5361    VBOX_OGL_GEN_SYNC_OP5_PTR_RET(int, DrvSetLayerPaletteEntries, hdc, iLayerPlane, iStart, cEntries, sizeof(COLORREF)*cEntries, pcr);
     62    /* Propagate error through the right channel */
     63    SetLastError(glGetError());
    5464    return retval;
    5565}
     
    5969{
    6070    VBOX_OGL_GEN_SYNC_OP3_RET(BOOL, DrvRealizeLayerPalette, hdc, iLayerPlane, bRealize);
     71    /* Propagate error through the right channel */
     72    SetLastError(glGetError());
    6173    return retval;
    6274}
     
    6577{
    6678    VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvSwapLayerBuffers, hdc, fuPlanes);
     79    /* Propagate error through the right channel */
     80    SetLastError(glGetError());
    6781    return retval;
    6882}
     
    7185{
    7286    VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvSetPixelFormat, hdc, iPixelFormat);
     87    /* Propagate error through the right channel */
     88    SetLastError(glGetError());
    7389    return retval;
    7490}
     
    7793{
    7894    VBOX_OGL_GEN_SYNC_OP1_RET(BOOL, DrvSwapBuffers, hdc);
     95    /* Propagate error through the right channel */
     96    SetLastError(glGetError());
    7997    return retval;
    8098}
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