mesa/src
Anuj Phogat 1ebdf22224 mesa: Fix valid texture target test in _mesa_GetTexLevelParameteriv()
_mesa_max_texture_levels() is also used to test valid texture target
in _mesa_GetTexLevelParameteriv(). GL_TEXTURE_CUBE_MAP is not allowed
as texture target in glGetTexLevelParameter(). So, this should throw
GL_INVALID_ENUM error.

Few other functions which use _mesa_max_texture_levels() like
getcompressedteximage_error_check() and getteximage_error_check()
also don't accept GL_TEXTURE_CUBE_MAP.

Above fix makes piglit fbo-cubemap test to fail. This is because of
incorrect texture target passed to _mesa_max_texture_levels() in
framebuffer_texture(). Fixing that as well

Note: This is a candidate for the stable branches

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit a9523af0e8)
2012-05-17 22:13:49 -07:00
..
egl egl: fix uninitialized values 2012-04-29 11:22:34 +00:00
gallium svga: fix typedef conflicts on Haiku 2012-05-17 17:21:29 -07:00
gbm gbm: fix copy & paste error in gbm_bo_get_handle documentation 2012-01-25 12:24:51 -05:00
getopt
glsl glsl: Avoid excessive loop unrolling. 2012-05-17 21:27:59 -07:00
glu glu: remove BeOS define as BeOS is not longer a target platform 2011-12-27 09:16:51 -07:00
glx Have __glImageSize handle format GL_DEPTH_STENCIL_NV the same way as the server does 2012-05-17 17:23:57 -07:00
mapi glapi: Correct size of allocated _glapi_table struct 2012-04-22 20:41:04 -07:00
mesa mesa: Fix valid texture target test in _mesa_GetTexLevelParameteriv() 2012-05-17 22:13:49 -07:00
Makefile
SConscript scons: Unbreak mingw build. 2011-09-20 20:50:48 +01:00