VirtualBox

Ignore:
Timestamp:
Mar 16, 2010 12:43:40 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: opengl 2.1 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texture.c

    r25154 r27396  
    382382        case GL_RGBA:
    383383        case GL_COMPRESSED_RGBA_ARB:
     384#ifdef CR_EXT_texture_sRGB
     385    case GL_SRGB_ALPHA_EXT:
     386    case GL_SRGB8_ALPHA8_EXT:
     387    case GL_COMPRESSED_SRGB_ALPHA_EXT:
     388#endif
    384389                tl->texFormat = &_texformat_rgba8888;
    385390                break;
     
    388393        case GL_RGB:
    389394        case GL_COMPRESSED_RGB_ARB:
     395#ifdef CR_EXT_texture_sRGB
     396    case GL_SRGB_EXT:
     397    case GL_SRGB8_EXT:
     398    case GL_COMPRESSED_SRGB_EXT:
     399#endif
    390400                tl->texFormat = &_texformat_rgb888;
    391401                break;
     
    429439        case GL_LUMINANCE16:
    430440        case GL_COMPRESSED_LUMINANCE_ARB:
     441#ifdef CR_EXT_texture_sRGB
     442    case GL_SLUMINANCE_EXT:
     443    case GL_SLUMINANCE8_EXT:
     444    case GL_COMPRESSED_SLUMINANCE_EXT:
     445#endif
    431446                tl->texFormat = &_texformat_l8;
    432447                break;
     
    441456        case GL_LUMINANCE16_ALPHA16:
    442457        case GL_COMPRESSED_LUMINANCE_ALPHA_ARB:
     458#ifdef CR_EXT_texture_sRGB
     459    case GL_SLUMINANCE_ALPHA_EXT:
     460    case GL_SLUMINANCE8_ALPHA8_EXT:
     461    case GL_COMPRESSED_SLUMINANCE_ALPHA_EXT:
     462#endif
    443463                tl->texFormat = &_texformat_al88;
    444464                break;
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