[Mesa-dev] [PATCH 01/10] mesa: Remove gl_context::ResetStatus

Ian Romanick idr at freedesktop.org
Wed Oct 30 02:06:59 CET 2013


From: Ian Romanick <ian.d.romanick at intel.com>

This isn't going to be used in the actual implemenation of
glGetGraphicsResetStatus.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/main/context.c   | 1 -
 src/mesa/main/getstring.c | 2 +-
 src/mesa/main/mtypes.h    | 3 ---
 3 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 6cdeed1..f9ca709 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -804,7 +804,6 @@ init_attrib_groups(struct gl_context *ctx)
    ctx->NewState = _NEW_ALL;
    ctx->NewDriverState = ~0;
    ctx->ErrorValue = GL_NO_ERROR;
-   ctx->ResetStatus = GL_NO_ERROR;
    ctx->varying_vp_inputs = VERT_BIT_ALL;
 
    return GL_TRUE;
diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c
index 0e07542..23f1e09 100644
--- a/src/mesa/main/getstring.c
+++ b/src/mesa/main/getstring.c
@@ -305,7 +305,7 @@ GLenum GLAPIENTRY
 _mesa_GetGraphicsResetStatusARB( void )
 {
    GET_CURRENT_CONTEXT(ctx);
-   GLenum status = ctx->ResetStatus;
+   GLenum status = GL_NO_ERROR;
 
    if (MESA_VERBOSE & VERBOSE_API)
       _mesa_debug(ctx, "glGetGraphicsResetStatusARB"
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index a1a5eb4..55a05f2 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3834,9 +3834,6 @@ struct gl_context
 
    GLenum ErrorValue;        /**< Last error code */
 
-   /* GL_ARB_robustness */
-   GLenum ResetStatus;
-
    /**
     * Recognize and silence repeated error debug messages in buggy apps.
     */
-- 
1.8.1.4



More information about the mesa-dev mailing list