st/mesa: fix fallout from xfb changes.
[mesa.git] / src / mesa / state_tracker / st_cb_msaa.c
index b09e0e3e17153429c18c95d1cb8a677f47a42094..d581f2121b0214175def9b3b0f2c826df108249d 100644 (file)
@@ -25,7 +25,6 @@
  *
  **************************************************************************/
 
-#include "main/mfeatures.h"
 #include "main/bufferobj.h"
 #include "main/imports.h"
 
@@ -41,15 +40,17 @@ static void
 st_GetSamplePosition(struct gl_context *ctx,
                      struct gl_framebuffer *fb,
                      GLuint index,
-                     GLfloat *outValue)
+                     GLfloat *outPos)
 {
    struct st_context *st = st_context(ctx);
 
-   st_validate_state(st);
+   st_validate_state(st, ST_PIPELINE_RENDER);
 
    if (st->pipe->get_sample_position)
       st->pipe->get_sample_position(st->pipe, (unsigned) fb->Visual.samples,
-                                    index, outValue);
+                                    index, outPos);
+   else
+      outPos[0] = outPos[1] = 0.5f;
 }