Parcourir la source

Reject unsupported texture formats passed to glCompressedTexImage?D. This

fixes Mesa bug #1028405.
tags/unichrome-last-xinerama
Ian Romanick il y a 21 ans
Parent
révision
a2dc424acf
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3
    0
      src/mesa/main/teximage.c

+ 3
- 0
src/mesa/main/teximage.c Voir le fichier

@@ -2798,6 +2798,9 @@ compressed_texture_error_check(GLcontext *ctx, GLint dimensions,
if (!is_compressed_format(ctx, internalFormat))
return GL_INVALID_ENUM;

if (_mesa_base_tex_format(ctx, internalFormat) < 0)
return GL_INVALID_ENUM;

if (border != 0)
return GL_INVALID_VALUE;


Chargement…
Annuler
Enregistrer