projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca3df5e
)
mesa: minor simplification in _mesa_es3_error_check_format_and_type()
author
Brian Paul
<brianp@vmware.com>
Tue, 17 Dec 2013 23:20:29 +0000
(16:20 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 18 Dec 2013 16:06:52 +0000
(09:06 -0700)
The type_valid local was set to true and never changed.
src/mesa/main/glformats.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/glformats.c
b/src/mesa/main/glformats.c
index 740faa890d43c81126117531116c5b15d0d16b79..1ab8b239a871cb5771fd6354e1937f78b9e12869 100644
(file)
--- 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
;
}