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

computeShaderParticlesExample not running on macOS #7906

Closed
dimitre opened this issue Mar 3, 2024 · 2 comments
Closed

computeShaderParticlesExample not running on macOS #7906

dimitre opened this issue Mar 3, 2024 · 2 comments

Comments

@dimitre
Copy link
Member

dimitre commented Mar 3, 2024

different errors using XCode and make.
similar issues with computeShaderTextureExample
macos 13.6.4, XCode 15.2, apple silicon

d@zen computeShaderParticlesExample % make RunRelease
[ error ] ofAppGLFWWindow: 65543: Requested OpenGL version 4.3, got version 4.1
[ error ] ofAppGLFWWindow: couldn't create GLFW window
/bin/sh: line 1: 42809 Segmentation fault: 11  ./computeShaderParticlesExample
make: *** [RunRelease] Error 139
Screenshot 2024-03-03 at 10 11 53
@artificiel
Copy link
Contributor

Well compute shader is openGL4.3, and macOS is stuck at 4.1... for that reason it's removed from the releases:

if [ "$pkg_platform" == "osx" ]; then
rm -Rf gles
rm -Rf gl/computeShaderParticlesExample
rm -Rf gl/computeShaderTextureExample
fi

Do you mean a better error should be issued if openGL > 4.1 is requested on macOS? or should setupShaderFromFile() alarm if GL_COMPUTE_SHADER when #ifdef OF_TARGET_MAC?

what would be the ideal behaviour?

@dimitre
Copy link
Member Author

dimitre commented Mar 12, 2024

Yes, thanks for the reminder @artificiel.
Definetly it can be handled better, at least ofLogError but maybe std::exit with a message if the requested openGL version is higher than the system can provide.
edit: in ofCreateWindow

@dimitre dimitre closed this as completed May 11, 2024
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

2 participants