gallium: use simple color pass-through fragment shader if textures don't exist
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 25 Apr 2008 21:23:21 +0000 (15:23 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 25 Apr 2008 21:24:07 +0000 (15:24 -0600)
commit332b77b852905224741084c5a4f5d2f4625dd119
treed0a9c8b79656068e85c2b3666eb1ceb2756e08f4
parent4c50969334844bc9aa622176c3ebcbc733394f78
gallium: use simple color pass-through fragment shader if textures don't exist

If we run out of texture memory we may not have the texture needed by the
fragment shader.  If this happens, plug in a color passthrough shader.
So instead of crashing, we just don't see the texture.
GL_OUT_OF_MEMORY is raised, of course.
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_context.h