VirtualBox

Ignore:
Timestamp:
Dec 16, 2018 3:05:45 PM (6 years ago)
Author:
vboxsync
Message:

DevVGA-SVGA3d: enable dynamic loading of opengl: use function pointer type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-glLdr.cpp

    r76253 r76254  
    2727#ifdef RT_OS_WINDOWS
    2828# define OGLGETPROCADDRESS MyWinGetProcAddress
    29 DECLINLINE(PROC) MyWinGetProcAddress(const char *pszSymbol)
     29DECLINLINE(PFNRT) MyWinGetProcAddress(const char *pszSymbol)
    3030{
    3131    int rc;
     
    5454    {
    5555        /* Khronos: [on failure] "some implementations will return other values. 1, 2, and 3 are used, as well as -1". */
    56         PROC p = s_wglGetProcAddress(pszSymbol);
     56        PFNRT p = (PFNRT)s_wglGetProcAddress(pszSymbol);
    5757        if (RT_VALID_PTR(p))
    5858            return p;
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