VirtualBox

Ignore:
Timestamp:
Feb 4, 2010 10:52:42 AM (15 years ago)
Author:
vboxsync
Message:

OpenGL-OSX: better fix of r57145 (#4438 still remains)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa.c

    r26204 r26229  
    2323
    2424#include "renderspu.h"
     25#include <iprt/process.h>
     26#include <iprt/string.h>
     27#include <iprt/path.h>
    2528
    2629GLboolean renderspu_SystemInitVisual(VisualInfo *pVisInfo)
     
    6770    CRASSERT(pWinInfo);
    6871
     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
    6979    pWinInfo->visual = pVisInfo;
    7080    pWinInfo->window = NULL;
     
    7787    NativeViewRef pParentWin = (NativeViewRef)(uint32_t)render_spu_parent_window_id;
    7888#endif /* __LP64__ */
    79 
    80 /*    if (!pParentWin)*/
    81 /*        return GL_FALSE;*/
    8289
    8390    cocoaViewCreate(&pWinInfo->window, pParentWin, pVisInfo->visAttribs);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette