st/mesa: skip glDrawPixels/glBitmap-related code for ES build
authorBrian Paul <brianp@vmware.com>
Tue, 4 Jan 2011 15:28:16 +0000 (08:28 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 4 Jan 2011 15:28:17 +0000 (08:28 -0700)
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32560

src/mesa/state_tracker/st_program.c

index e9e05acf41cfb3581c9e20038e27f48368602ad0..cabec14e0e48f8aea5205021560f46b1c362d734 100644 (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 */