OGL: Update the window size after swapping buffers, not before

Prevents us from rendering beyond the viewport bounds.
This commit is contained in:
Stenzek 2017-09-09 12:44:25 +10:00
parent 73a67aa413
commit ab44536a3c
3 changed files with 31 additions and 29 deletions

View file

@ -54,6 +54,7 @@ GLuint FramebufferManager::CreateTexture(GLenum texture_type, GLenum internal_fo
GLenum pixel_format, GLenum data_type)
{
GLuint texture;
glActiveTexture(GL_TEXTURE9);
glGenTextures(1, &texture);
glBindTexture(texture_type, texture);
if (texture_type == GL_TEXTURE_2D_ARRAY)