Changeset 3346 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Jul 2, 2007 11:39:18 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22538
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/glwindrv.cpp
r3338 r3346 162 162 163 163 PIXELFORMATDESCRIPTOR pfd = {0}; 164 165 166 167 168 169 170 171 172 173 174 164 int format; 165 166 pClient->hdc = GetDC(pClient->hwnd); 167 168 pfd.nSize = sizeof(pfd); 169 pfd.nVersion = 1; 170 pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; 171 pfd.iPixelType = iPixelType; 172 pfd.cColorBits = cColorBits; 173 pfd.cDepthBits = cDepthBits; 174 pfd.iLayerType = PFD_MAIN_PLANE; 175 175 uint32_t lasterr = glGetError(); 176 176 format = ChoosePixelFormat(pClient->hdc, &pfd); 177 177 lasterr = glGetError(); 178 179 178 SetPixelFormat(pClient->hdc, format, &pfd); 179 180 180 lasterr = glGetError(); 181 181 glrc = wglCreateContext(pClient->hdc); 182 182 lasterr = glGetError(); 183 183 Assert(glrc); … … 274 274 } 275 275 PIXELFORMATDESCRIPTOR pfd = {0}; 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 276 int format; 277 278 pClient->hdc = GetDC(pClient->hwnd); 279 280 pfd.nSize = sizeof(pfd); 281 pfd.nVersion = 1; 282 pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; 283 pfd.iPixelType = iPixelType; 284 pfd.cColorBits = cColorBits; 285 pfd.cDepthBits = cDepthBits; 286 pfd.iLayerType = PFD_MAIN_PLANE; 287 format = ChoosePixelFormat(pClient->hdc, &pfd); 288 SetPixelFormat(pClient->hdc, format, &pfd); 289 290 glrc = wglCreateLayerContext(pClient->hdc, iLayerPlane); 291 291 #else 292 292 AssertFailed();
Note:
See TracChangeset
for help on using the changeset viewer.