From a08aad8009d1dcf1b75130fda0be12350ed86be5 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 Dec 2017 06:50:57 +1100 Subject: [PATCH] [client] opengl: don't scale the FPS readout --- client/renderers/opengl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/renderers/opengl.c b/client/renderers/opengl.c index 1b91200c..20da1c39 100644 --- a/client/renderers/opengl.c +++ b/client/renderers/opengl.c @@ -371,6 +371,9 @@ bool opengl_render(void * opaque, SDL_Window * window) this->fpsTexture = true; glNewList(this->fpsList, GL_COMPILE); + glPushMatrix(); + glLoadIdentity(); + glEnable(GL_BLEND); glDisable(GL_TEXTURE_2D); glColor4f(0.0f, 0.0f, 1.0f, 0.5f); @@ -391,6 +394,8 @@ bool opengl_render(void * opaque, SDL_Window * window) glTexCoord2f(1.0f, 1.0f); glVertex2i(this->fpsRect.x + this->fpsRect.w, this->fpsRect.y + this->fpsRect.h); glEnd(); glDisable(GL_BLEND); + + glPopMatrix(); glEndList(); }