glamor: Fix bad fallthrough in getspans (accessing invalid memory).

This commit is contained in:
Eric Anholt 2009-08-24 08:17:06 -07:00 committed by Zhigang Gong
parent 0360ba361a
commit d9eef95c74

View File

@ -66,6 +66,7 @@ glamor_get_spans(DrawablePtr drawable,
case 8:
format = GL_ALPHA;
type = GL_UNSIGNED_BYTE;
break;
case 24:
format = GL_RGB;
type = GL_UNSIGNED_BYTE;