Changeset 26229 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Feb 4, 2010 10:52:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa.c
r26204 r26229 23 23 24 24 #include "renderspu.h" 25 #include <iprt/process.h> 26 #include <iprt/string.h> 27 #include <iprt/path.h> 25 28 26 29 GLboolean renderspu_SystemInitVisual(VisualInfo *pVisInfo) … … 67 70 CRASSERT(pWinInfo); 68 71 72 /* VirtualBox is the only frontend which support 3D right now. */ 73 char pszName[256]; 74 if (RTProcGetExecutableName(pszName, sizeof(pszName))) 75 /* Check for VirtualBox and VirtualBoxVM */ 76 if (RTStrNICmp(RTPathFilename(pszName), "VirtualBox", 10) != 0) 77 return GL_FALSE; 78 69 79 pWinInfo->visual = pVisInfo; 70 80 pWinInfo->window = NULL; … … 77 87 NativeViewRef pParentWin = (NativeViewRef)(uint32_t)render_spu_parent_window_id; 78 88 #endif /* __LP64__ */ 79 80 /* if (!pParentWin)*/81 /* return GL_FALSE;*/82 89 83 90 cocoaViewCreate(&pWinInfo->window, pParentWin, pVisInfo->visAttribs);
Note:
See TracChangeset
for help on using the changeset viewer.