Skip to content

Added glx.h to OpenGL.h and commented out a return statement. #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Snoucher
Copy link

glx.h helps with linux compilation, without it the functions glXGetCurrentContext and glXGetCurrentDisplay in raytracer.c don't get recgonised.

Also I commented out a return false; because it was inside a void function.

With these changes, I was able to compile the game on my linux machine. There are some things still need working on, like OpenCL-ICD-Loader just gives me headaches when trying to compile, but that's not this repo's problem :)

Snoucher added 2 commits May 18, 2025 14:11
Without this, the compiler cannot process some of the lines in Raytracer.c I know because I personally tried to compile this game.
@@ -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;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why the return false was there, must've been an oversight. Remove the comments and i'll approve, thanks

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alr, im on it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's done. Could you just double check before approval?

@Snoucher Snoucher requested a review from johnpayne-dev June 18, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants