From 49d6a96a5a2c8d233c0e68a417ba14b4c6f7657e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 Nov 2009 14:22:12 +0000 Subject: [PATCH] From Lilin Xiong, "when using stlport5.3 (vc 2003) , this line cann't be compiled: _instances[0] = new WGLExtensions; change to: _instances[HGLRC(0)] = new WGLExtensions;" --- src/osgViewer/PixelBufferWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {