mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 23:59:54 -06:00
OGL: Bind the attributeless VAO before EFB copies.
Fixes crashes in Zack & Wiki using an older NVIDIA driver.
This commit is contained in:
@ -140,6 +140,8 @@ void OpenGL_BindAttributelessVAO()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OpenGL_DeleteAttributelessVAO()
|
void OpenGL_DeleteAttributelessVAO()
|
||||||
|
{
|
||||||
|
if (attributelessVAO)
|
||||||
{
|
{
|
||||||
glDeleteVertexArrays(1, &attributelessVAO);
|
glDeleteVertexArrays(1, &attributelessVAO);
|
||||||
glDeleteBuffers(1, &attributelessVBO);
|
glDeleteBuffers(1, &attributelessVBO);
|
||||||
@ -147,3 +149,4 @@ void OpenGL_DeleteAttributelessVAO()
|
|||||||
attributelessVAO = 0;
|
attributelessVAO = 0;
|
||||||
attributelessVBO = 0;
|
attributelessVBO = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -249,6 +249,8 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo
|
|||||||
{
|
{
|
||||||
FramebufferManager::SetFramebuffer(framebuffer);
|
FramebufferManager::SetFramebuffer(framebuffer);
|
||||||
|
|
||||||
|
OpenGL_BindAttributelessVAO();
|
||||||
|
|
||||||
glActiveTexture(GL_TEXTURE0+9);
|
glActiveTexture(GL_TEXTURE0+9);
|
||||||
glBindTexture(GL_TEXTURE_2D_ARRAY, read_texture);
|
glBindTexture(GL_TEXTURE_2D_ARRAY, read_texture);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user