Bumping gaia.json for 1 gaia revision(s) a=gaia-bump
[gecko.git] / dom / canvas / WebGLVertexArrayGL.cpp
blobca93a93217715b90570626a909fcf200547b71e3
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"
9 #include "GLContext.h"
11 namespace mozilla {
13 void
14 WebGLVertexArrayGL::DeleteImpl()
16 mElementArrayBuffer = nullptr;
18 mContext->MakeContextCurrent();
19 mContext->gl->fDeleteVertexArrays(1, &mGLName);
22 void
23 WebGLVertexArrayGL::BindVertexArrayImpl()
25 mContext->mBoundVertexArray = this;
27 mContext->gl->fBindVertexArray(mGLName);
30 void
31 WebGLVertexArrayGL::GenVertexArray()
33 mContext->gl->fGenVertexArrays(1, &mGLName);
36 } // namespace mozilla