aboutsummaryrefslogtreecommitdiff
path: root/src/window_texture.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-01-11 23:47:35 +0100
committerdec05eba <dec05eba@protonmail.com>2024-01-11 23:47:35 +0100
commit705ad3bee5de67725311d4085f0481fa7107ba41 (patch)
tree78879a96cdab04878072db18d51465560d95e094 /src/window_texture.c
parentc4fb95cf0025b34ca14c22f4fbbfcef14d56d71c (diff)
Render wallpaper
Diffstat (limited to 'src/window_texture.c')
-rw-r--r--src/window_texture.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/window_texture.c b/src/window_texture.c
index c3bde72..bd4c558 100644
--- a/src/window_texture.c
+++ b/src/window_texture.c
@@ -1,7 +1,11 @@
#include "window_texture.h"
-#include <X11/extensions/Xcomposite.h>
+
#include <stdio.h>
+#include <X11/extensions/Xcomposite.h>
+
+/* TODO: Use pixmap_texture for window_texture */
+
int window_texture_init(WindowTexture *window_texture, Display *display, Window window) {
window_texture->display = display;
window_texture->window = window;
@@ -137,8 +141,8 @@ int window_texture_on_resize(WindowTexture *self) {
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE );
- glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
- glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
+ glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
+ glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST );
/*
float fLargest = 0.0f;