365{
369
372 return;
373 }
374
375 if (
ctx->AttribStackDepth==0) {
377 return;
378 }
379
380 ctx->AttribStackDepth--;
381 attr =
ctx->AttribStack[
ctx->AttribStackDepth];
382
384 switch (
attr->kind) {
387 break;
389 oldDrawBuffer =
ctx->Color.DrawBuffer;
392 if (
ctx->Color.DrawBuffer != oldDrawBuffer) {
394 }
395 break;
399 break;
403 break;
406 ctx->Color.AlphaEnabled =
enable->AlphaTest;
407 ctx->Transform.Normalize =
enable->AutoNormal;
410 ctx->Transform.ClipEnabled[
i] =
enable->ClipPlane[
i];
411 }
412 ctx->Light.ColorMaterialEnabled =
enable->ColorMaterial;
413 ctx->Polygon.CullFlag =
enable->CullFace;
418 ctx->Line.SmoothFlag =
enable->LineSmooth;
419 ctx->Line.StippleFlag =
enable->LineStipple;
420 ctx->Color.IndexLogicOpEnabled =
enable->IndexLogicOp;
421 ctx->Color.ColorLogicOpEnabled =
enable->ColorLogicOp;
422 ctx->Eval.Map1Color4 =
enable->Map1Color4;
424 ctx->Eval.Map1Normal =
enable->Map1Normal;
425 ctx->Eval.Map1TextureCoord1 =
enable->Map1TextureCoord1;
426 ctx->Eval.Map1TextureCoord2 =
enable->Map1TextureCoord2;
427 ctx->Eval.Map1TextureCoord3 =
enable->Map1TextureCoord3;
428 ctx->Eval.Map1TextureCoord4 =
enable->Map1TextureCoord4;
429 ctx->Eval.Map1Vertex3 =
enable->Map1Vertex3;
430 ctx->Eval.Map1Vertex4 =
enable->Map1Vertex4;
431 ctx->Eval.Map2Color4 =
enable->Map2Color4;
433 ctx->Eval.Map2Normal =
enable->Map2Normal;
434 ctx->Eval.Map2TextureCoord1 =
enable->Map2TextureCoord1;
435 ctx->Eval.Map2TextureCoord2 =
enable->Map2TextureCoord2;
436 ctx->Eval.Map2TextureCoord3 =
enable->Map2TextureCoord3;
437 ctx->Eval.Map2TextureCoord4 =
enable->Map2TextureCoord4;
438 ctx->Eval.Map2Vertex3 =
enable->Map2Vertex3;
439 ctx->Eval.Map2Vertex4 =
enable->Map2Vertex4;
440 ctx->Transform.Normalize =
enable->Normalize;
441 ctx->Point.SmoothFlag =
enable->PointSmooth;
442 ctx->Polygon.OffsetPoint =
enable->PolygonOffsetPoint;
443 ctx->Polygon.OffsetLine =
enable->PolygonOffsetLine;
444 ctx->Polygon.OffsetFill =
enable->PolygonOffsetFill;
445 ctx->Polygon.OffsetAny =
ctx->Polygon.OffsetPoint ||
446 ctx->Polygon.OffsetLine ||
447 ctx->Polygon.OffsetFill;
448 ctx->Polygon.SmoothFlag =
enable->PolygonSmooth;
449 ctx->Polygon.StippleFlag =
enable->PolygonStipple;
453 ctx->Texture.TexGenEnabled =
enable->TexGen;
454 break;
457 break;
460 break;
463 break;
466 break;
469 break;
472 break;
475 break;
478 break;
482 break;
485 break;
489 break;
493 break;
497 break;
501 break;
505 break;
506 default:
508 break;
509 }
510
515 }
516
518}
void gl_problem(const GLcontext *ctx, const char *s)
void gl_error(GLcontext *ctx, GLenum error, const char *s)
void gl_DrawBuffer(GLcontext *ctx, GLenum mode)
#define GL_ACCUM_BUFFER_BIT
#define GL_INVALID_OPERATION
#define GL_POLYGON_STIPPLE_BIT
#define GL_PIXEL_MODE_BIT
#define GL_COLOR_BUFFER_BIT
#define GL_STENCIL_BUFFER_BIT
#define GL_DEPTH_BUFFER_BIT
#define GL_STACK_UNDERFLOW
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define MEMCPY(DST, SRC, BYTES)
#define INSIDE_BEGIN_END(CTX)
static unsigned __int64 next