1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "WebGLVertexArrayGL.h"
8 #include "WebGLContext.h"
14 WebGLVertexArrayGL::DeleteImpl()
16 mElementArrayBuffer
= nullptr;
18 mContext
->MakeContextCurrent();
19 mContext
->gl
->fDeleteVertexArrays(1, &mGLName
);
23 WebGLVertexArrayGL::BindVertexArrayImpl()
25 mContext
->mBoundVertexArray
= this;
27 mContext
->gl
->fBindVertexArray(mGLName
);
31 WebGLVertexArrayGL::GenVertexArray()
33 mContext
->gl
->fGenVertexArrays(1, &mGLName
);
36 } // namespace mozilla