VirtualBox

Ignore:
Timestamp:
Aug 31, 2009 9:45:51 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: apply viewport hack only if being run under wine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/load.c

    r21308 r22591  
    524524        int i;
    525525
    526         crGetProcName(name, 1000);
    527         for (i=0; gsViewportHackApps[i]; ++i)
     526        /* Apply viewport hack only if we're running under wine */
     527        if (NULL!=GetModuleHandle("wined3d.dll"))
    528528        {
    529             if (!stricmp(name, gsViewportHackApps[i]))
     529            crGetProcName(name, 1000);
     530            for (i=0; gsViewportHackApps[i]; ++i)
    530531            {
    531                 stub.viewportHack = 1;
    532                 break;
     532                if (!stricmp(name, gsViewportHackApps[i]))
     533                {
     534                    stub.viewportHack = 1;
     535                    break;
     536                }
    533537            }
    534538        }
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