mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +00:00
Radar colors should be drawn using GL_NEAREST, textures are generated such that exact levels already exist
This commit is contained in:
parent
304297be9b
commit
cc36922e99
1 changed files with 2 additions and 0 deletions
|
|
@ -132,6 +132,8 @@ void RadarProductLayer::Initialize()
|
||||||
// Create color table
|
// Create color table
|
||||||
gl.glGenTextures(1, &p->texture_);
|
gl.glGenTextures(1, &p->texture_);
|
||||||
UpdateColorTable();
|
UpdateColorTable();
|
||||||
|
gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||||
|
gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||||
gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||||
|
|
||||||
connect(context()->radarProductView_.get(),
|
connect(context()->radarProductView_.get(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue