mesa: Provide an alternative to get_vp_mode()
[mesa.git] / src / mesa / main / context.c
index 79d3e39e92246d7e343d3269e0fb9142e4c329bb..0aa2e3639f0846f948eb9ef57939895f9b524f2c 100644 (file)
 #include "shared.h"
 #include "shaderobj.h"
 #include "shaderimage.h"
+#include "state.h"
 #include "util/debug.h"
 #include "util/disk_cache.h"
 #include "util/strtod.h"
@@ -1579,6 +1580,8 @@ handle_first_current(struct gl_context *ctx)
 
    check_context_limits(ctx);
 
+   _mesa_update_vertex_processing_mode(ctx);
+
    /* According to GL_MESA_configless_context the default value of
     * glDrawBuffers depends on the config of the first surface it is bound to.
     * For GLES it is always GL_BACK which has a magic interpretation.