GTK+: OpenGL: Only do this part on non-legacy.

This commit is contained in:
Brandon Wright 2018-11-09 15:47:38 -06:00
parent 21c1863782
commit b6858adf11
1 changed files with 6 additions and 3 deletions

View File

@ -354,9 +354,12 @@ void S9xOpenGLDisplayDriver::update_texture_size (int width, int height)
texture_width = width;
texture_height = height;
glBindBuffer (GL_ARRAY_BUFFER, coord_buffer);
glBufferData (GL_ARRAY_BUFFER, sizeof (GLfloat) * 16, coords, GL_STATIC_DRAW);
glBindBuffer (GL_ARRAY_BUFFER, 0);
if (!legacy)
{
glBindBuffer (GL_ARRAY_BUFFER, coord_buffer);
glBufferData (GL_ARRAY_BUFFER, sizeof (GLfloat) * 16, coords, GL_STATIC_DRAW);
glBindBuffer (GL_ARRAY_BUFFER, 0);
}
}
}