From 535241000b20a4567f4b6ed879377f39c8b0f31a Mon Sep 17 00:00:00 2001 From: Snoucher <46611027+Snoucher@users.noreply.github.com> Date: Sun, 18 May 2025 14:11:01 +0300 Subject: [PATCH 1/3] Added missing glx.h to OpenGL.h Without this, the compiler cannot process some of the lines in Raytracer.c I know because I personally tried to compile this game. --- MinecraftC/Utilities/OpenGL.h | 1 + 1 file changed, 1 insertion(+) diff --git a/MinecraftC/Utilities/OpenGL.h b/MinecraftC/Utilities/OpenGL.h index 356f217..d10ecf0 100644 --- a/MinecraftC/Utilities/OpenGL.h +++ b/MinecraftC/Utilities/OpenGL.h @@ -13,4 +13,5 @@ #elif defined(__linux) #include <GL/gl.h> #include <GL/glu.h> + #include <GL/glx.h> #endif From 94a7697532dd6f60eff695855889dc7accd2355b Mon Sep 17 00:00:00 2001 From: Snoucher <46611027+Snoucher@users.noreply.github.com> Date: Sun, 18 May 2025 14:12:46 +0300 Subject: [PATCH 2/3] Commented out a return to a void function --- MinecraftC/Mods/Raytracer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MinecraftC/Mods/Raytracer.c b/MinecraftC/Mods/Raytracer.c index b7925ae..68fb9a7 100644 --- a/MinecraftC/Mods/Raytracer.c +++ b/MinecraftC/Mods/Raytracer.c @@ -164,7 +164,8 @@ void RaytracerReload() { error |= clSetKernelArg(Raytracer.traceKernel, 2, sizeof(cl_mem), &Raytracer.blockBuffer); if (error < 0) { LogError("Failed to set kernel arguments: %i\n", error); - return false; + //return false; + //What's this doing here? } } From d73e09d54df9cbe63da4e2a5d41a4701adefcdb4 Mon Sep 17 00:00:00 2001 From: Snoucher <46611027+Snoucher@users.noreply.github.com> Date: Wed, 18 Jun 2025 16:02:22 +0300 Subject: [PATCH 3/3] Removed comments for approval --- MinecraftC/Mods/Raytracer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/MinecraftC/Mods/Raytracer.c b/MinecraftC/Mods/Raytracer.c index 68fb9a7..8350f55 100644 --- a/MinecraftC/Mods/Raytracer.c +++ b/MinecraftC/Mods/Raytracer.c @@ -164,8 +164,6 @@ void RaytracerReload() { error |= clSetKernelArg(Raytracer.traceKernel, 2, sizeof(cl_mem), &Raytracer.blockBuffer); if (error < 0) { LogError("Failed to set kernel arguments: %i\n", error); - //return false; - //What's this doing here? } }