Brian Paul wrote:
> 
> Armin Widmer wrote:
> >
> > Hello, and Happy New Year:
> >
> > A few days ago I downloaded MesaLib-3.1.tar.gz and MesaDemos-3.1.tar.gz.
> > After the installation of the new libraries, I noticed the following
> > problems in one of my applications:
> >
> >   - Text rendered with glBitmap is not depthcued
> >   - Lines rendered intermixed with text appear with wrong colour
> >   - Lines rendered intermixed with text are not properly antialiased
> >
> > This happens only for simple (just lines and text) scenes. The program
> > runs fine under OpenGL on various SGI's, under OpenGL on Pentium II
> > under Windows 98 and NT, and on Pentium II under Mesa 3.0 and Mesa
> > 3.1beta, Linux (RedHat 6.0, Kernel 2.2.15).
> >
> > After a bit of debugging, I found out that the problem seems to be in
> > render_bitmap (bitmap.c): this function is called to render the text
> > bitmaps, with ctx->NewState==0, ctx->PB->primitive!=GL_BITMAP, hence nof
> > Fog (depthcue) in gl_flush_pb. This looked suspect to me, and I added
> > the following lines to bitmap.c,
> > line 77:
> >
> > AW on pluto 96> diff bitmap.c.original bitmap.c
> > 77a78,81
> > >    if (ctx->PB->primitive!=GL_BITMAP) {   /* A.W. 1.1.2000 */
> > >      gl_reduced_prim_change( ctx, GL_BITMAP );
> > >    }
> > >
> >
> > As far as I can see, this fixes the depthcue/antialias problems for
> > lines and text. Could you please let me know, if my analysis is correct.
> > If it isn't, I will try to provide you with a small demo-program which
> > illustrates the problem.
> 
> I wrote my own test.  Your patch appears to solve the problem.  I've
> checked it in.
> 
> Keith, perhaps you could double-check it though to make sure this isn't
> a symptom of a bigger problem.

The change looks good to me.  I don't see any larger problem on a quick check.

Keith


_______________________________________________
Mesa-bug maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-bug


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to