Skip to content
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

MSAA doesn't work in Linux #71

Open
erikd71 opened this issue Apr 2, 2024 · 0 comments
Open

MSAA doesn't work in Linux #71

erikd71 opened this issue Apr 2, 2024 · 0 comments

Comments

@erikd71
Copy link

erikd71 commented Apr 2, 2024

Hi there and thanks for this very useful library!

I found an issue where MSAA doesn't work in Linux's implementation of GLCanvas.
Looking at the code, it seems that GLData.samples and GLData.sampleBuffers are ignored in method PlatformLinuxGLCanvas.create().
I could get it to work by adding the following lines in that method:

		if (attribs.samples > 0) {
			attrib_list.put(GLX14.GLX_SAMPLE_BUFFERS).put(1);
			attrib_list.put(GLX14.GLX_SAMPLES).put(attribs.samples);
		}

I think this is in line with the javadoc and what the Windows implementation does, and I've tested this on 2 machines (one with an Intel GPU and one with AMD).
It would be great if this could be fixed in the next release!

Cheers,
Erik

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

No branches or pull requests

1 participant