st/mesa: skip glDrawPixels/glBitmap-related code for ES build

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32560
This commit is contained in:
Brian Paul
2011-01-04 08:28:16 -07:00
parent 6a102074bb
commit c94996f057
+2
View File
@@ -409,6 +409,7 @@ st_translate_fragment_program(struct st_context *st,
assert(!(key->bitmap && key->drawpixels));
#if FEATURE_drawpix
if (key->bitmap) {
/* glBitmap drawing */
struct gl_fragment_program *fp;
@@ -434,6 +435,7 @@ st_translate_fragment_program(struct st_context *st,
}
stfp = st_fragment_program(fp);
}
#endif
if (!stfp->tgsi.tokens) {
/* need to translate Mesa instructions to TGSI now */