diff options
author | Brian Paul <[email protected]> | 2013-12-17 16:20:29 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-12-18 09:06:52 -0700 |
commit | a9bf5999d1a2b5ce59a5101582f838bbf147765d (patch) | |
tree | 702e69a1c9308ba556318bdd66ee469e27871606 /src/mesa/main/glformats.c | |
parent | ca3df5eeda1def6aa7e44fd136e2c17d3a061e87 (diff) |
mesa: minor simplification in _mesa_es3_error_check_format_and_type()
The type_valid local was set to true and never changed.
Diffstat (limited to 'src/mesa/main/glformats.c')
-rw-r--r-- | src/mesa/main/glformats.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 740faa890d4..1ab8b239a87 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -1694,8 +1694,6 @@ GLenum _mesa_es3_error_check_format_and_type(GLenum format, GLenum type, GLenum internalFormat) { - GLboolean type_valid = GL_TRUE; - switch (format) { case GL_RGBA: switch (type) { @@ -2116,5 +2114,5 @@ _mesa_es3_error_check_format_and_type(GLenum format, GLenum type, break; } - return type_valid ? GL_NO_ERROR : GL_INVALID_OPERATION; + return GL_NO_ERROR; } |