diff options
author | Marek Olšák <[email protected]> | 2013-04-07 00:22:32 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-04-10 02:01:16 +0200 |
commit | 4f1fd920c90443eb90a115a7b859dfac293ba373 (patch) | |
tree | 54150bd2c08ddda0ed62c72de5748d533a644c8b | |
parent | b6475f9437bbd080524b0b871a12c681dfc82f06 (diff) |
mesa: update derived framebuffer state in GetMultisamplefv
This makes sure that ctx->DrawBuffer->Visual.samples is up-to-date.
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r-- | src/mesa/main/multisample.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c index b0f45d9332a..a1edb52efcf 100644 --- a/src/mesa/main/multisample.c +++ b/src/mesa/main/multisample.c @@ -30,6 +30,7 @@ #include "main/mtypes.h" #include "main/fbobject.h" #include "main/glformats.h" +#include "main/state.h" /** @@ -73,6 +74,10 @@ _mesa_GetMultisamplefv(GLenum pname, GLuint index, GLfloat * val) { GET_CURRENT_CONTEXT(ctx); + if (ctx->NewState & _NEW_BUFFERS) { + _mesa_update_state(ctx); + } + switch (pname) { case GL_SAMPLE_POSITION: { if (index >= ctx->DrawBuffer->Visual.samples) { |