Re: [Mesa-dev] [PATCH] intel: Recognize all depth formats in get_teximage_readbuffer.

2011-07-09 Thread Eric Anholt
On Sat, 9 Jul 2011 03:41:32 -0700, Kenneth Graunke wrote: > The existing code was missing GL_DEPTH_COMPONENT32, resulting in it > wrongly returning the color buffer instead of the depth buffer. > > Fixes an issue in PlaneShift 0.5.7 when casting spells. The game calls > CopyTexSubImage2D on bu

[Mesa-dev] [PATCH] intel: Recognize all depth formats in get_teximage_readbuffer.

2011-07-09 Thread Kenneth Graunke
The existing code was missing GL_DEPTH_COMPONENT32, resulting in it wrongly returning the color buffer instead of the depth buffer. Fixes an issue in PlaneShift 0.5.7 when casting spells. The game calls CopyTexSubImage2D on buffers with a GL_DEPTH_COMPONENT32 internal format, which (prior to this