Fix bug 1858 - array subscript out of range in gamma driver.
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 26 Jul 2005 00:10:53 +0000 (00:10 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 26 Jul 2005 00:10:53 +0000 (00:10 +0000)
commit800c72ae61532fba4a9cada8713e60ed0d2d7347
treea0ce8f7f221f7530caf57f2809152fcdfc74ced6
parent7c1ab4089868ed49a9317c76d875b2cef062bc61
Fix bug 1858 - array subscript out of range in gamma driver.
Set ctx->Const.MaxTextureLevels = GAMMA_TEX_MAXLEVELS = 12
Remove bogus WRITE(level 12).
Max gamma texture size is 2kx2k  (note: 2k = 1 << (MaxLevels - 1))
src/mesa/drivers/dri/gamma/gamma_context.c
src/mesa/drivers/dri/gamma/gamma_context.h
src/mesa/drivers/dri/gamma/gamma_state.c