Skip to content

Commit

Permalink
minimap: Unblur radar minimap when zooming in on it.
Browse files Browse the repository at this point in the history
Refs #4708.
  • Loading branch information
Cyp committed Sep 27, 2018
1 parent 46b191a commit 4f6e988
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ivis_opengl/pieblitfunc.cpp
Expand Up @@ -655,6 +655,7 @@ bool pie_ShutdownRadar()
void pie_SetRadar(GLfloat x, GLfloat y, GLfloat width, GLfloat height, int twidth, int theight)
{
radarGfx->makeTexture(twidth, theight, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); // Want GL_LINEAR (or GL_LINEAR_MIPMAP_NEAREST) for min filter, but GL_NEAREST for mag filter.
GLfloat texcoords[] = { 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f };
GLfloat vertices[] = { x, y, x + width, y, x, y + height, x + width, y + height };
radarGfx->buffers(4, vertices, texcoords);
Expand Down

0 comments on commit 4f6e988

Please sign in to comment.