From 659f6cc14edc1a9b0c61803f3147a04fcb227e50 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Tue, 24 Jan 2023 20:06:00 +0100 Subject: [PATCH] doing some stuff --- includes/mlx.h | 2 +- src/platform/window.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/mlx.h b/includes/mlx.h index db61285..7c10315 100644 --- a/includes/mlx.h +++ b/includes/mlx.h @@ -6,7 +6,7 @@ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/04 16:56:35 by maldavid #+# #+# */ -/* Updated: 2022/12/18 04:03:37 by maldavid ### ########.fr */ +/* Updated: 2023/01/24 17:52:21 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/src/platform/window.cpp b/src/platform/window.cpp index b93dcd4..937fe62 100644 --- a/src/platform/window.cpp +++ b/src/platform/window.cpp @@ -6,7 +6,7 @@ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/04 17:36:44 by maldavid #+# #+# */ -/* Updated: 2023/01/24 17:21:40 by maldavid ### ########.fr */ +/* Updated: 2023/01/24 17:57:19 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ @@ -43,7 +43,7 @@ namespace mlx void MLX_Window::pixel_put(int x, int y, int color) { - Vertex vert; + static Vertex vert; vert.pos = glm::vec2(x, y); vert.color.r = (color >> 16) & 0xFF; vert.color.g = (color >> 8) & 0xFF;