#include "errors.h"
-#include "imports.h"
+
#include "extensions.h"
#include "mtypes.h"
#include "vbo/vbo.h"
/** \name Visual-related functions */
/*@{*/
-
+
extern struct gl_config *
_mesa_create_visual( GLboolean dbFlag,
GLboolean stereoFlag,
/** \name Context-related functions */
/*@{*/
+extern void
+_mesa_initialize(void);
+
extern GLboolean
_mesa_initialize_context( struct gl_context *ctx,
gl_api api,
const struct dd_function_table *driverFunctions);
extern void
-_mesa_free_context_data( struct gl_context *ctx );
+_mesa_free_context_data(struct gl_context *ctx);
extern void
_mesa_destroy_context( struct gl_context *ctx );
do { \
if (MESA_VERBOSE & VERBOSE_STATE) \
_mesa_debug(ctx, "FLUSH_FOR_DRAW in %s\n", __func__); \
- if (ctx->Driver.NeedFlush) \
- vbo_exec_FlushVertices(ctx, ctx->Driver.NeedFlush); \
+ if (ctx->Driver.NeedFlush) { \
+ if (ctx->_AllowDrawOutOfOrder) { \
+ if (ctx->Driver.NeedFlush & FLUSH_UPDATE_CURRENT) \
+ vbo_exec_FlushVertices(ctx, FLUSH_UPDATE_CURRENT); \
+ } else { \
+ vbo_exec_FlushVertices(ctx, ctx->Driver.NeedFlush); \
+ } \
+ } \
} while (0)
/**
* Macro to assert that the API call was made outside the
* glBegin()/glEnd() pair, with return value.
- *
+ *
* \param ctx GL context.
* \param retval value to return in case the assertion fails.
*/
/**
* Macro to assert that the API call was made outside the
* glBegin()/glEnd() pair.
- *
+ *
* \param ctx GL context.
*/
#define ASSERT_OUTSIDE_BEGIN_END(ctx) \