aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-04-01 20:46:12 +0200
committerdec05eba <dec05eba@protonmail.com>2020-06-21 14:41:11 +0200
commit5e60805c3681a705240d49a0c5c589ff65d7aa83 (patch)
tree15dc06fcd61fb52cbb88843b63183cb94e922a99
parent2b4aeb90f3ec8aca37ac133e8a2fd154296618e8 (diff)
Fix gl errors
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ede803b..eb32c8a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -160,7 +160,7 @@ static bool recreate_window_pixmap(Display *dpy, Window window_id,
pixmap.pixmap = new_window_pixmap;
pixmap.glx_pixmap = glx_pixmap;
- glEnable(GL_TEXTURE_2D);
+ //glEnable(GL_TEXTURE_2D);
glGenTextures(1, &pixmap.texture_id);
glBindTexture(GL_TEXTURE_2D, pixmap.texture_id);
@@ -177,7 +177,7 @@ static bool recreate_window_pixmap(Display *dpy, Window window_id,
GL_NEAREST); // GL_LINEAR );
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
GL_NEAREST); // GL_LINEAR);//GL_LINEAR_MIPMAP_LINEAR );
- glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+ //glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
fprintf(stderr, "texture width: %d, height: %d\n", pixmap.texture_width,
pixmap.texture_height);