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

Prevents us from rendering beyond the viewport bounds.
This commit is contained in:
Stenzek committed 2017-11-23 16:09:59 +10:00
1 parent 73a67aa413
commit ab44536a3c
3 files changed
+31 -29

No files matched your search

@@ -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)