VirtualBox

Ignore:
Timestamp:
Jul 30, 2018 7:32:01 AM (6 years ago)
Author:
vboxsync
Message:

DevVGA-SVGA3d-ogl.cpp: allow DXT2 and DXT4 formats.

File:
1 edited

Legend:

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

    r73373 r73390  
    15201520
    15211521    case SVGA3D_DEVCAP_SURFACEFMT_DXT2:
     1522    case SVGA3D_DEVCAP_SURFACEFMT_DXT3:
    15221523    case SVGA3D_DEVCAP_SURFACEFMT_DXT4:
    1523         *pu32Val = 0;   /* apparently not supported in OpenGL */
    1524         break;
    1525 
    1526     case SVGA3D_DEVCAP_SURFACEFMT_DXT3:
    15271524    case SVGA3D_DEVCAP_SURFACEFMT_DXT5:
    15281525    case SVGA3D_DEVCAP_SURFACEFMT_BUMPX8L8V8U8:
     
    16711668
    16721669    case SVGA3D_DXT2:                   /* D3DFMT_DXT2 */
    1673         AssertMsgFailed(("Test me - SVGA3D_DXT2\n"));
    1674         break;
    1675 
     1670        /* "DXT2 and DXT3 are the same from an API perspective." */
     1671        RT_FALL_THRU();
    16761672    case SVGA3D_DXT3:                   /* D3DFMT_DXT3 - WINED3DFMT_DXT3 */
    16771673        pSurface->internalFormatGL = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT;
     
    16811677
    16821678    case SVGA3D_DXT4:                   /* D3DFMT_DXT4 */
    1683         AssertMsgFailed(("Test me - SVGA3D_DXT4\n"));
    1684         break;
    1685 
     1679        /* "DXT4 and DXT5 are the same from an API perspective." */
     1680        RT_FALL_THRU();
    16861681    case SVGA3D_DXT5:                   /* D3DFMT_DXT5 - WINED3DFMT_DXT5 */
    16871682        pSurface->internalFormatGL = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT;
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