Changeset 3436 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jul 5, 2007 8:36:51 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22646
- 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 61 61 } 62 62 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()); 63 65 return retval; 64 66 } … … 100 102 101 103 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()); 102 106 return retval; 103 107 } … … 108 112 { 109 113 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()); 110 116 return retval; 111 117 } … … 116 122 { 117 123 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()); 118 126 return retval; 119 127 } … … 123 131 /* if ppfd == NULL, then DrvDescribelayerPlane returns the maximum nr of supported pixel formats */ 124 132 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()); 125 135 return retval; 126 136 } -
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/OGLSimpleSync.cpp
r3419 r3436 27 27 { 28 28 VBOX_OGL_GEN_SYNC_OP1_RET(BOOL, DrvDeleteContext, hglrc); 29 /* Propagate error through the right channel */ 30 SetLastError(glGetError()); 29 31 return retval; 30 32 } … … 33 35 { 34 36 VBOX_OGL_GEN_SYNC_OP3_RET(BOOL, DrvCopyContext, hglrcSrc, hglrcDst, mask); 37 /* Propagate error through the right channel */ 38 SetLastError(glGetError()); 35 39 return retval; 36 40 } … … 39 43 { 40 44 VBOX_OGL_GEN_SYNC_OP1(DrvReleaseContext, hglrc); 45 /* Propagate error through the right channel */ 46 SetLastError(glGetError()); 41 47 } 42 48 … … 44 50 { 45 51 VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvShareLists, hglrc1, hglrc2); 52 /* Propagate error through the right channel */ 53 SetLastError(glGetError()); 46 54 return retval; 47 55 } … … 52 60 { 53 61 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()); 54 64 return retval; 55 65 } … … 59 69 { 60 70 VBOX_OGL_GEN_SYNC_OP3_RET(BOOL, DrvRealizeLayerPalette, hdc, iLayerPlane, bRealize); 71 /* Propagate error through the right channel */ 72 SetLastError(glGetError()); 61 73 return retval; 62 74 } … … 65 77 { 66 78 VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvSwapLayerBuffers, hdc, fuPlanes); 79 /* Propagate error through the right channel */ 80 SetLastError(glGetError()); 67 81 return retval; 68 82 } … … 71 85 { 72 86 VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvSetPixelFormat, hdc, iPixelFormat); 87 /* Propagate error through the right channel */ 88 SetLastError(glGetError()); 73 89 return retval; 74 90 } … … 77 93 { 78 94 VBOX_OGL_GEN_SYNC_OP1_RET(BOOL, DrvSwapBuffers, hdc); 95 /* Propagate error through the right channel */ 96 SetLastError(glGetError()); 79 97 return retval; 80 98 }
Note:
See TracChangeset
for help on using the changeset viewer.