blob: 3f44e6ad521d79b50d33ee22bd59c4e8ee60a07d [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_VR_GL_BINDINGS_H_
#define CHROME_BROWSER_VR_GL_BINDINGS_H_
#if defined(VR_USE_COMMAND_BUFFER)
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#elif defined(VR_USE_NATIVE_GL)
#include "ui/gl/gl_bindings.h" // nogncheck
// The above header still uses the ARB prefix for the following GL API call.
#define glGenBuffers glGenBuffersARB
#else
#error "Missing configuration for GL mode."
#endif // defined(VR_USE_COMMAND_BUFFER)
#endif // CHROME_BROWSER_VR_GL_BINDINGS_H_