OSDN Git Service

mesa: fix compressed_subtexture_error_check() return value
authorBrian Paul <brianp@vmware.com>
Fri, 15 Aug 2014 22:55:40 +0000 (16:55 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 16 Aug 2014 12:48:45 +0000 (06:48 -0600)
commit9d9879abed5bf99bc7beb9e20ac71a179585ff90
treeb29516bd2418c17013ee3393222c0a87ae496318
parentcf8b680f40a4d1a48be82798b7a09da2d828bee5
mesa: fix compressed_subtexture_error_check() return value

The function should return GLboolean, not GLenum.
If we detect invalid compressed pixel storage parameters, we should
return GL_TRUE, not GL_FALSE so that the function is no-op'd.
An update to the piglit s3tc-errors test will check this.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/teximage.c