From 4ee75bdab562d2125836668afab22e3726732c4c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 3 Mar 2000 15:39:13 +0000 Subject: moved device driver DrawPixels call --- src/mesa/main/drawpix.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c index 38de1a0434..56ee2d76e3 100644 --- a/src/mesa/main/drawpix.c +++ b/src/mesa/main/drawpix.c @@ -1,4 +1,4 @@ -/* $Id: drawpix.c,v 1.12 2000/02/08 23:42:14 brianp Exp $ */ +/* $Id: drawpix.c,v 1.13 2000/03/03 15:39:13 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -117,13 +117,6 @@ simple_DrawPixels( GLcontext *ctx, GLint x, GLint y, gl_update_state(ctx); } - /* see if device driver can do the drawpix */ - if (ctx->Driver.DrawPixels - && (*ctx->Driver.DrawPixels)(ctx, x, y, width, height, format, type, - unpack, pixels)) { - return GL_TRUE; - } - if ((ctx->RasterMask&(~(SCISSOR_BIT|WINCLIP_BIT)))==0 && ctx->Pixel.RedBias==0.0 && ctx->Pixel.RedScale==1.0 && ctx->Pixel.GreenBias==0.0 && ctx->Pixel.GreenScale==1.0 @@ -694,6 +687,13 @@ _mesa_DrawPixels( GLsizei width, GLsizei height, x = (GLint) (ctx->Current.RasterPos[0] + 0.5F); y = (GLint) (ctx->Current.RasterPos[1] + 0.5F); + /* see if device driver can do the drawpix */ + if (ctx->Driver.DrawPixels + && (*ctx->Driver.DrawPixels)(ctx, x, y, width, height, format, type, + &ctx->Unpack, pixels)) { + return; + } + switch (format) { case GL_STENCIL_INDEX: draw_stencil_pixels( ctx, x, y, width, height, type, pixels ); -- cgit v1.2.3