From 705ad3bee5de67725311d4085f0481fa7107ba41 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 11 Jan 2024 23:47:35 +0100 Subject: Render wallpaper --- src/window_texture.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/window_texture.c') 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 + #include +#include + +/* 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; -- cgit v1.2.3