Skip to content
  • Alejandro Piñeiro's avatar
    arb_internalformat_query2: use CompressedTexImage*D for specific compressed formats · 24a92424
    Alejandro Piñeiro authored
    
    
    Until right now we were using glTexImage*D for any compressed
    internalformat. That would only work always if the driver supports
    online compression for specific compressed internalformats.
    
    As it is not really easy to check which internalformats the driver
    supports online compression for, it is safer to use
    glCompressedTexImage*D for any specific internalformat, keeping
    glTexImage*D for the generic ones.
    
    v2: specific compressed internalformat GL_COMPRESSED_RED_RGTC1 was
        missing, minor tweaks (Antia)
    
    Reviewed-by: default avatarAntia Puentes <apuentes@igalia.com>
    24a92424