projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
449cae1
)
extensions: remove unused code.
author
Dave Airlie
<airlied@redhat.com>
Sun, 12 Feb 2012 16:07:19 +0000
(16:07 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Sun, 12 Feb 2012 16:09:50 +0000
(16:09 +0000)
Comparing an unsigned to < 0 is pointless.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/extensions.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/extensions.c
b/src/mesa/main/extensions.c
index b02a49de46efa72db96add44f32d9dc130cb7c23..d945124d22003647b62ac956911520b7d403815e 100644
(file)
--- a/
src/mesa/main/extensions.c
+++ b/
src/mesa/main/extensions.c
@@
-931,9
+931,6
@@
_mesa_get_enabled_extension(struct gl_context *ctx, GLuint index)
size_t n;
const struct extension *i;
- if (index < 0)
- return NULL;
-
base = (GLboolean*) &ctx->Extensions;
n = 0;
for (i = extension_table; i->name != 0; ++i) {