+#include <msp/gl/extensions/arb_tessellation_shader.h>
#include <msp/gl/extensions/msp_primitive_restart.h>
#include "batch_backend.h"
OpenGLBatch::OpenGLBatch(PrimitiveType t):
gl_prim_type(get_gl_primitive_type(t)),
gl_index_type(GL_UNSIGNED_SHORT)
-{ }
+{
+ if(t==PATCHES)
+ static Require _req(ARB_tessellation_shader);
+}
bool OpenGLBatch::check_restart(bool require)
{