mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[client] opengl: don't scale the FPS readout
This commit is contained in:
parent
2b66fa6136
commit
a08aad8009
@ -371,6 +371,9 @@ bool opengl_render(void * opaque, SDL_Window * window)
|
|||||||
this->fpsTexture = true;
|
this->fpsTexture = true;
|
||||||
|
|
||||||
glNewList(this->fpsList, GL_COMPILE);
|
glNewList(this->fpsList, GL_COMPILE);
|
||||||
|
glPushMatrix();
|
||||||
|
glLoadIdentity();
|
||||||
|
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
glDisable(GL_TEXTURE_2D);
|
glDisable(GL_TEXTURE_2D);
|
||||||
glColor4f(0.0f, 0.0f, 1.0f, 0.5f);
|
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);
|
glTexCoord2f(1.0f, 1.0f); glVertex2i(this->fpsRect.x + this->fpsRect.w, this->fpsRect.y + this->fpsRect.h);
|
||||||
glEnd();
|
glEnd();
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
|
|
||||||
|
glPopMatrix();
|
||||||
glEndList();
|
glEndList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user