st/glx: Remove a wrong assertion in choose_pixel_format.
authorChia-I Wu <olv@lunarg.com>
Tue, 30 Mar 2010 01:17:20 +0000 (09:17 +0800)
committerChia-I Wu <olv@lunarg.com>
Tue, 30 Mar 2010 03:20:53 +0000 (11:20 +0800)
commitc1a392ac4c6a7da4026653de556c2c7698f86860
treefb27ed7f708fa648e190a44242d26bdd48146686
parent8c6f71e01e40075156c8b83f2c5e15ab73e66036
st/glx: Remove a wrong assertion in choose_pixel_format.

There are X visuals that Gallium or the code does not support.  We could
not assert the color format to be supported.  Return PIPE_FORMAT_NONE in
such cases and let the caller handle it.
src/gallium/state_trackers/glx/xlib/glx_api.c
src/gallium/state_trackers/glx/xlib/xm_api.c