mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 03:32:58 +00:00
b19cff8a08
Instead of abusing whatever VAO is previously bound, which might have enabled arrays. Only used in one instance currently, which fixes a crash with older NVIDIA drivers.
32 lines
839 B
C
32 lines
839 B
C
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "Common/MathUtil.h"
|
|
#include "VideoBackends/OGL/GLExtensions/GLExtensions.h"
|
|
#include "VideoCommon/VideoConfig.h"
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include <sys/types.h>
|
|
|
|
#endif
|
|
void InitInterface();
|
|
|
|
// Helpers
|
|
GLuint OpenGL_CompileProgram(const char *vertexShader, const char *fragmentShader);
|
|
|
|
// Binds (and creates, if necessary) a VAO and VBO suitable for attributeless rendering.
|
|
void OpenGL_BindAttributelessVAO();
|
|
// Deletes any existing VAO / VBO that has been created.
|
|
void OpenGL_DeleteAttributelessVAO();
|
|
|
|
// this should be removed in future, but as long as glsl is unstable, we should really read this messages
|
|
#if defined(_DEBUG) || defined(DEBUGFAST)
|
|
#define DEBUG_GLSL 1
|
|
#else
|
|
#define DEBUG_GLSL 0
|
|
#endif
|