mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
VideoBackends:OGL: Creating vertex formats shouldn't unbind anything
This commit is contained in:
parent
44f8b8c100
commit
e3cc42069f
3 changed files with 10 additions and 1 deletions
|
@ -496,6 +496,12 @@ void ProgramShaderCache::BindVertexFormat(const GLVertexFormat* vertex_format)
|
|||
s_last_VAO = new_VAO;
|
||||
}
|
||||
|
||||
void ProgramShaderCache::ReBindVertexFormat()
|
||||
{
|
||||
if (s_last_VAO)
|
||||
glBindVertexArray(s_last_VAO);
|
||||
}
|
||||
|
||||
bool ProgramShaderCache::IsValidVertexFormatBound()
|
||||
{
|
||||
return s_last_VAO != 0 && s_last_VAO != s_attributeless_VAO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue