Skip to content
  • Timothy Arceri's avatar
    mesa: check samples > 0 for glTex*Multisample · d3ace603
    Timothy Arceri authored
    
    
    The GL 4.5 spec says its an GL_INVALID_VALUE error if samples equals 0 for
    glTexImage*Multisample and an GL_INVALID_VALUE error if samples < 1 for
    glTexStorage*Multisample.
    
    The spec says its undefined what happens if glTexImage*Multisample is passed
    a samples value < 0 but we currently already produced a GL_INVALID_VALUE error
    in this case, this is also consistent with the Nvidia binary.
    
    Cc: Tapani Pälli <tapani.palli@intel.com>
    Reviewed-by: default avatarAnuj Phogat <anuj.phogat@gmail.com>
    d3ace603