Move the ctx->FirstTimeCurrent initialization
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 13 Sep 2005 01:19:29 +0000 (01:19 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 13 Sep 2005 01:19:29 +0000 (01:19 +0000)
src/mesa/main/context.c
src/mesa/main/debug.c

index a09a4dc..7a8833a 100644 (file)
@@ -1223,6 +1223,8 @@ _mesa_initialize_context( GLcontext *ctx,
    ctx->_MaintainTexEnvProgram = (_mesa_getenv("MESA_TEX_PROG") != NULL);
    ctx->_MaintainTnlProgram = (_mesa_getenv("MESA_TNL_PROG") != NULL);
 
+   ctx->FirstTimeCurrent = GL_TRUE;
+
    return GL_TRUE;
 }
 
index edc32b1..c211220 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * Mesa 3-D graphics library
- * Version:  6.1
+ * Version:  6.5
  *
- * Copyright (C) 1999-2004  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2005  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -195,9 +195,6 @@ _mesa_init_debug( GLcontext *ctx )
 {
    char *c;
 
-   /* For debug/development only */
-   ctx->FirstTimeCurrent = GL_TRUE;
-
    /* Dither disable */
    ctx->NoDither = _mesa_getenv("MESA_NO_DITHER") ? GL_TRUE : GL_FALSE;
    if (ctx->NoDither) {