diff --git a/src/osgViewer/PixelBufferWin32.cpp b/src/osgViewer/PixelBufferWin32.cpp index 3013dc672..84819cd4c 100644 --- a/src/osgViewer/PixelBufferWin32.cpp +++ b/src/osgViewer/PixelBufferWin32.cpp @@ -427,7 +427,7 @@ WGLExtensions *WGLExtensions::instance() { osg::ref_ptr tempWin= new TemporaryWindow; tempWin->makeCurrent(); - _instances[0] = new WGLExtensions; + _instances[HGLRC(0)] = new WGLExtensions; } else {