mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
Bugfix for ctx->backface_sign calculation
This commit is contained in:
parent
5a437d5889
commit
14f8b8b5c3
2 changed files with 13 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: dlist.c,v 1.4 1999/09/11 11:31:34 brianp Exp $ */
|
||||
/* $Id: dlist.c,v 1.5 1999/09/20 14:30:22 keithw Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -2457,6 +2457,11 @@ static void execute_list( GLcontext *ctx, GLuint list )
|
|||
}
|
||||
if (!ctx->CVA.elt.pipeline_valid)
|
||||
gl_build_immediate_pipeline( ctx );
|
||||
|
||||
if ((MESA_VERBOSE & VERBOSE_DISPLAY_LIST) &&
|
||||
(MESA_VERBOSE & VERBOSE_IMMEDIATE))
|
||||
gl_print_cassette( (struct immediate *) n[1].data, 0, ~0 );
|
||||
|
||||
gl_fixup_cassette( ctx, (struct immediate *) n[1].data );
|
||||
gl_execute_cassette( ctx, (struct immediate *) n[1].data );
|
||||
break;
|
||||
|
|
@ -3096,26 +3101,21 @@ void gl_CallList( GLcontext *ctx, GLuint list )
|
|||
/* execute the display list, and restore the CompileFlag. */
|
||||
GLboolean save_compile_flag;
|
||||
|
||||
if (MESA_VERBOSE&VERBOSE_API)
|
||||
if (MESA_VERBOSE&VERBOSE_API) {
|
||||
fprintf(stderr, "glCallList %u\n", list);
|
||||
|
||||
mesa_print_display_list( list );
|
||||
}
|
||||
|
||||
save_compile_flag = ctx->CompileFlag;
|
||||
ctx->CompileFlag = GL_FALSE;
|
||||
|
||||
FLUSH_VB( ctx, "call list" );
|
||||
|
||||
/* mesa_print_display_list( list ); */
|
||||
|
||||
execute_list( ctx, list );
|
||||
ctx->CompileFlag = save_compile_flag;
|
||||
|
||||
/* also restore API function pointers to point to "save" versions */
|
||||
if (save_compile_flag)
|
||||
ctx->API = ctx->Save;
|
||||
|
||||
|
||||
/* RESET_IMMEDIATE( ctx ); */
|
||||
ctx->API = ctx->Save;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: polygon.c,v 1.2 1999/08/26 14:50:49 keithw Exp $ */
|
||||
/* $Id: polygon.c,v 1.3 1999/09/20 14:30:22 keithw Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -77,8 +77,10 @@ void gl_FrontFace( GLcontext *ctx, GLenum mode )
|
|||
gl_error( ctx, GL_INVALID_ENUM, "glFrontFace" );
|
||||
return;
|
||||
}
|
||||
|
||||
ctx->Polygon.FrontFace = mode;
|
||||
ctx->Polygon.FrontBit = (mode == GL_CW);
|
||||
ctx->NewState |= NEW_POLYGON;
|
||||
|
||||
if (ctx->Driver.FrontFace)
|
||||
ctx->Driver.FrontFace( ctx, mode );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue