thin3d: Only use VAOs in core profile.

This commit is contained in:
Unknown W. Brackets 2015-12-22 22:14:20 -08:00
parent 5ff7781a3c
commit 279d3b20cf

View file

@ -566,7 +566,7 @@ void Thin3DGLVertexFormat::Compile() {
semanticsMask_ = sem;
// TODO : Compute stride as well?
if (gl_extensions.ARB_vertex_array_object) {
if (gl_extensions.ARB_vertex_array_object && gl_extensions.IsCoreContext) {
glGenVertexArrays(1, &id_);
} else {
id_ = 0;