mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 05:50:25 +01:00
in _mesa_GetColorTable, return silently if table size is 0
This commit is contained in:
parent
62b4601e53
commit
7ed292a4e9
1 changed files with 6 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 6.5.2
|
||||
* Version: 6.5.3
|
||||
*
|
||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||
* Copyright (C) 1999-2007 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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue