VirtualBox

Ignore:
Timestamp:
Sep 1, 2010 1:51:22 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65462
Message:

crOpenGL: empty stub for apps not checking returned function pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py

    r30457 r32178  
    101101extern BOOL WINAPI wglGetPixelFormatAttribfvEXT_prox(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, float *pValues);
    102102
     103BOOL WINAPI wglSwapIntervalEXT(int interval)
     104{
     105    return false;
     106}
     107
    103108CR_PROC CR_APIENTRY crGetProcAddress( const char *name )
    104109{
     
    130135    if (!crStrcmp( name, "wglGetPixelFormatAttribfvARB" )) return (CR_PROC) wglGetPixelFormatAttribfvEXT;
    131136
     137    if (!crStrcmp( name, "wglSwapIntervalEXT" )) return (CR_PROC) wglSwapIntervalEXT;
     138
    132139    crDebug("Returning GetProcAddress:NULL for %s", name);
    133140    return NULL;
Note: See TracChangeset for help on using the changeset viewer.

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