| 1 | // Copyright 2008 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <string> |
| 7 | |
| 8 | #include "Common/GL/GLExtensions/GLExtensions.h" |
| 9 | |
| 10 | class GLContext; |
| 11 | |
| 12 | // Texture which we use to not disturb the other bindings. |
| 13 | constexpr GLenum GL_MUTABLE_TEXTURE_INDEX = GL_TEXTURE10; |
| 14 | |
| 15 | namespace GLUtil |
| 16 | { |
| 17 | GLuint CompileProgram(const std::string& vertexShader, const std::string& fragmentShader); |
| 18 | void EnablePrimitiveRestart(const GLContext* context); |
| 19 | } // namespace GLUtil |