mesa: Fix GenerateMipmapEXT(GL_TEXTURE_CUBE_MAP_ARB).
authorEric Anholt <eric@anholt.net>
Sun, 7 Dec 2008 05:14:56 +0000 (21:14 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 7 Dec 2008 06:41:52 +0000 (22:41 -0800)
commitf849d364c22e702e3dda664fa65601d4cf2b55a5
tree1487a73188a58969468afcd811e20e078cc18948
parent8b661a5d33604fd3706cb1825236d72ae2949598
mesa: Fix GenerateMipmapEXT(GL_TEXTURE_CUBE_MAP_ARB).

The ctx->Driver.GenerateMipmap() hook only expects cubemap face enums, not
CUBE_MAP_ARB, so walk all faces when we encounter that.  Fixes oglconform
fbo.c segfault with both swrast and i965 drivers.
src/mesa/main/fbobject.c