- Timestamp:
- 02/20/06 19:06:03 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/RenderSystems/GL/src/OgreWin32Window.cpp
r193 r657 226 226 } 227 227 228 HDC old_hdc = wglGetCurrentDC(); 229 HGLRC old_context = wglGetCurrentContext(); 230 228 231 RECT rc; 229 232 // top and left represent outer window position … … 255 258 256 259 wglSwapIntervalEXT(vsync? 1 : 0); 260 261 if (old_context) 262 { 263 // Restore old context 264 if (!wglMakeCurrent(old_hdc, old_context)) 265 OGRE_EXCEPT(0, "wglMakeCurrent() failed", "Win32Window::create"); 266 267 // Share lists with old context 268 if (!wglShareLists(old_context, mGlrc)) 269 OGRE_EXCEPT(0, "wglShareLists() failed", " Win32Window::create"); 270 } 257 271 258 272 // Create RenderSystem context
Note: See TracChangeset
for help on using the changeset viewer.