VirtualBox

Changeset 3423 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Jul 4, 2007 4:07:51 PM (18 years ago)
Author:
vboxsync
Message:

Or maybe not. Sigh.

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Display
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h

    r3418 r3423  
    104104};
    105105
     106#ifdef VBOX_WITH_OPENGL
     107typedef struct
     108{
     109    DWORD dwVersion;
     110    DWORD dwDriverVersion;
     111    WCHAR szDriverName[256];
     112} OPENGL_INFO, *POPENGL_INFO;
     113#endif
     114
    106115/* The global semaphore handle for all driver instances. */
    107116extern HSEMAPHORE ghsemHwBuffer;
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c

    r3418 r3423  
    8383    case OPENGL_GETINFO:
    8484    {
    85         /* It doesn't matter that we fail here. Opengl32 will fall back to software rendering when this escape is not supported. */
    86         DISPDBG((0, "OPENGL_GETINFO size %d\n", cjOut));
     85        if (    cjOut == sizeof(OPENGL_INFO)
     86            &&  pvOut)
     87        {
     88            POPENGL_INFO pInfo = (POPENGL_INFO)pvOut;
     89
     90            pInfo->dwVersion        = 2;
     91            pInfo->dwDriverVersion  = 1;
     92            pInfo->szDriverName[0]  = 'V';
     93            pInfo->szDriverName[1]  = 'B';
     94            pInfo->szDriverName[2]  = 'o';
     95            pInfo->szDriverName[3]  = 'x';
     96            pInfo->szDriverName[4]  = 'O';
     97            pInfo->szDriverName[5]  = 'G';
     98            pInfo->szDriverName[6]  = 'L';
     99            pInfo->szDriverName[7]  = 0;
     100
     101            DISPDBG((0, "OPENGL_GETINFO\n"));
     102            return cjOut;
     103        }
     104        else
     105            DISPDBG((0, "OPENGL_GETINFO invalid size %d\n", cjOut));         /* It doesn't matter that we fail here. Opengl32 will fall back to software rendering when this escape is not supported. */
    87106        break;
    88107    }
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