[915] Don't attempt our accelerated drawpixels if no color buffer is attached.

Otherwise, glDrawBuffer(GL_NONE); glDrawPixels() results in a segfault when
we try to emit the color buffer state during setup.
This commit is contained in:
Eric Anholt 2008-02-15 13:42:37 -08:00
parent 19420e6c25
commit eed5e6f40f

View file

@ -64,12 +64,13 @@ do_texture_drawpixels(GLcontext * ctx,
fprintf(stderr, "%s\n", __FUNCTION__);
intelFlush(&intel->ctx);
intel->vtbl.render_start(intel);
intel->vtbl.emit_state(intel);
if (!dst)
return GL_FALSE;
intel->vtbl.render_start(intel);
intel->vtbl.emit_state(intel);
if (src) {
if (!_mesa_validate_pbo_access(2, unpack, width, height, 1,
format, type, pixels)) {