VirtualBox

Ignore:
Timestamp:
Jul 4, 2007 3:41:51 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22624
Message:

OPENGL_GETINFO as a dummy is sufficient.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk

    r3397 r3418  
    3131VBoxDisp_SDKS        = W2K3DDKX86 WINPSDKINCS
    3232VBoxDisp_SYSSUFF     = .dll
    33 VBoxDisp_DEFS        = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW
     33VBoxDisp_DEFS        = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW VBOX_WITH_OPENGL
    3434#VBoxDisp_DEFS        += LOG_ENABLED
    3535#VBoxDisp_DEFS        += STAT_sunlover
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h

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

    r3417 r3418  
    8383    case OPENGL_GETINFO:
    8484    {
    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));
    106 
     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));
    10787        break;
    10888    }
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