projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62b4601
)
in _mesa_GetColorTable, return silently if table size is 0
author
Brian
<brian@yutani.localnet.net>
Thu, 15 Mar 2007 22:06:58 +0000
(16:06 -0600)
committer
Brian
<brian@yutani.localnet.net>
Thu, 15 Mar 2007 22:06:58 +0000
(16:06 -0600)
src/mesa/main/colortab.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/colortab.c
b/src/mesa/main/colortab.c
index 9fb0baf4a7c3e624148b189e268f503708f84195..2ad5c309b45891002586af3434ce0fa750d577b4 100644
(file)
--- a/
src/mesa/main/colortab.c
+++ b/
src/mesa/main/colortab.c
@@
-1,8
+1,8
@@
/*
* Mesa 3-D graphics library
- * Version: 6.5.
2
+ * Version: 6.5.
3
*
- * Copyright (C) 1999-200
6
Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-200
7
Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@
-722,6
+722,10
@@
_mesa_GetColorTable( GLenum target, GLenum format,
ASSERT(table);
+ if (table->Size <= 0) {
+ return;
+ }
+
switch (table->_BaseFormat) {
case GL_ALPHA:
{