projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finish up ATI_separate_stencil
[mesa.git]
/
src
/
mesa
/
main
/
buffers.c
diff --git
a/src/mesa/main/buffers.c
b/src/mesa/main/buffers.c
index 0e6ca8ea1c2053f850b180cbb9a4218299536403..3cbd671baba794e9b9fe7c7814a3b82dadcf2edd 100644
(file)
--- a/
src/mesa/main/buffers.c
+++ b/
src/mesa/main/buffers.c
@@
-118,6
+118,8
@@
_mesa_Clear( GLbitfield mask )
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
+ FLUSH_CURRENT(ctx, 0);
+
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glClear 0x%x\n", mask);
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glClear 0x%x\n", mask);
@@
-525,7
+527,7
@@
_mesa_drawbuffers(GLcontext *ctx, GLuint n, const GLenum *buffers,
set_color_output(ctx, output, GL_NONE, 0x0);
}
set_color_output(ctx, output, GL_NONE, 0x0);
}
- ctx->NewState |= _NEW_
COLOR
;
+ ctx->NewState |= _NEW_
BUFFERS
;
}
}
@@
-586,7
+588,7
@@
_mesa_ReadBuffer(GLenum buffer)
if (!_mesa_readbuffer_update_fields(ctx, buffer))
return;
if (!_mesa_readbuffer_update_fields(ctx, buffer))
return;
- ctx->NewState |= _NEW_
PIXEL
;
+ ctx->NewState |= _NEW_
BUFFERS
;
/*
* Call device driver function.
/*
* Call device driver function.