aboutsummaryrefslogtreecommitdiff
path: root/nk_pugl
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-14 21:36:21 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-14 21:36:21 +0100
commit29de62e055054f4b0f6305775c80672cde869c97 (patch)
tree7b29f15be21c07d7e694fa13da8ce077612f0e9f /nk_pugl
parentb7cfe2445c92cec6364b3f8fdc68d809e9af7cab (diff)
parent977a8162600df041ab1a93df5d5365c276f9b10f (diff)
downloadsherlock.lv2-29de62e055054f4b0f6305775c80672cde869c97.tar.xz
Merge commit '977a8162600df041ab1a93df5d5365c276f9b10f'
Diffstat (limited to 'nk_pugl')
-rw-r--r--nk_pugl/nk_pugl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nk_pugl/nk_pugl.h b/nk_pugl/nk_pugl.h
index 79006a8..93909c7 100644
--- a/nk_pugl/nk_pugl.h
+++ b/nk_pugl/nk_pugl.h
@@ -1071,15 +1071,15 @@ nk_pugl_icon_load(nk_pugl_window_t *win, const char *filename)
return nk_image_id(tex);
int w, h, n;
- uint8_t *data = stbi_load(filename, &w, &h, &n, 0);
+ uint8_t *data = stbi_load(filename, &w, &h, &n, 4);
if(data)
{
puglEnterContext(win->view);
{
glGenTextures(1, &tex);
glBindTexture(GL_TEXTURE_2D, tex);
- glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
- glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR_MIPMAP_NEAREST);
+ glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
+ glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
if(!win->glGenerateMipmap) // for GL >= 1.4 && < 3.1