-#include "arb_vertex_program.h"
+#include "arb_multitexture.h"
+#include "arb_vertex_shader.h"
#include "buffer.h"
#include "error.h"
-#include "extension.h"
#include "gl.h"
-#include "version_1_2.h"
-#include "version_1_3.h"
#include "vertexarray.h"
using namespace std;
has_gen_attrs = true;
}
if(has_multitex)
- static RequireVersion _ver(1, 3);
+ static Require _req(ARB_multitexture);
if(has_gen_attrs)
- static RequireExtension _ext("GL_ARB_vertex_program");
+ static Require _req(ARB_vertex_shader);
}
void VertexArray::apply() const
}
else
{
- glVertexAttribPointerARB(t-11, sz, GL_FLOAT, false, bpv, base+offset);
+ glVertexAttribPointer(t-11, sz, GL_FLOAT, false, bpv, base+offset);
if(!en)
- glEnableVertexAttribArrayARB(t-11);
+ glEnableVertexAttribArray(t-11);
}
break;
}
active_tex = i-3;
}
else
- glDisableVertexAttribArrayARB(i-11);
+ glDisableVertexAttribArray(i-11);
}
enabled_arrays = found;