]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/batch_backend.cpp
Add tessellation shader support to the engine
[libs/gl.git] / source / backends / opengl / batch_backend.cpp
index d80c11cc84fef0d5926041cd925c1e45b5d2ca49..2bd3c8374b3278e20e01e475e74e82a862b27dad 100644 (file)
@@ -1,3 +1,4 @@
+#include <msp/gl/extensions/arb_tessellation_shader.h>
 #include <msp/gl/extensions/msp_primitive_restart.h>
 #include "batch_backend.h"
 
@@ -7,7 +8,10 @@ namespace GL {
 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)
 {