Changeset 3423 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jul 4, 2007 4:07:51 PM (18 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Display
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h
r3418 r3423 104 104 }; 105 105 106 #ifdef VBOX_WITH_OPENGL 107 typedef struct 108 { 109 DWORD dwVersion; 110 DWORD dwDriverVersion; 111 WCHAR szDriverName[256]; 112 } OPENGL_INFO, *POPENGL_INFO; 113 #endif 114 106 115 /* The global semaphore handle for all driver instances. */ 107 116 extern HSEMAPHORE ghsemHwBuffer; -
trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c
r3418 r3423 83 83 case OPENGL_GETINFO: 84 84 { 85 /* It doesn't matter that we fail here. Opengl32 will fall back to software rendering when this escape is not supported. */ 86 DISPDBG((0, "OPENGL_GETINFO size %d\n", cjOut)); 85 if ( cjOut == sizeof(OPENGL_INFO) 86 && pvOut) 87 { 88 POPENGL_INFO pInfo = (POPENGL_INFO)pvOut; 89 90 pInfo->dwVersion = 2; 91 pInfo->dwDriverVersion = 1; 92 pInfo->szDriverName[0] = 'V'; 93 pInfo->szDriverName[1] = 'B'; 94 pInfo->szDriverName[2] = 'o'; 95 pInfo->szDriverName[3] = 'x'; 96 pInfo->szDriverName[4] = 'O'; 97 pInfo->szDriverName[5] = 'G'; 98 pInfo->szDriverName[6] = 'L'; 99 pInfo->szDriverName[7] = 0; 100 101 DISPDBG((0, "OPENGL_GETINFO\n")); 102 return cjOut; 103 } 104 else 105 DISPDBG((0, "OPENGL_GETINFO invalid size %d\n", cjOut)); /* It doesn't matter that we fail here. Opengl32 will fall back to software rendering when this escape is not supported. */ 87 106 break; 88 107 }
Note:
See TracChangeset
for help on using the changeset viewer.