- Timestamp:
- Jul 5, 2007 1:01:40 PM (17 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/OpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/VBoxOGL.cpp
r3460 r3462 216 216 } 217 217 DbgPrintf(("GL_EXTENSIONS=%s\n\n", szOpenGLExtensions)); 218 219 /* Initialize OpenGL extensions */ 220 vboxInitOpenGLExtensions(); 218 221 219 222 return TRUE; -
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/VBoxOGL.h
r3460 r3462 197 197 uint64_t VBoxOGLFlushPtr(void *pLastParam, uint32_t cbParam); 198 198 199 200 /** 201 * Initialize OpenGL extensions 202 * 203 * @returns VBox status code 204 */ 205 int vboxInitOpenGLExtensions(); 206 199 207 /** 200 208 * Check if an OpenGL extension is available on the host -
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/glext.cpp
r3460 r3462 46 46 { 47 47 const GLubyte *pszExtensions = glGetString(GL_EXTENSIONS); 48 static bool fInitialized = false; 49 50 if (fInitialized) 51 return VINF_SUCCESS; 48 52 49 53 for (int i=0;i<RT_ELEMENTS(OpenGLExtensions);i++) … … 52 56 OpenGLExtensions[i].fAvailable = VBoxIsExtensionAvailable(OpenGLExtensions[i].pszExtFunctionName); 53 57 } 58 fInitialized = true; 54 59 return VINF_SUCCESS; 55 60 }
Note:
See TracChangeset
for help on using the changeset viewer.

