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

Error in /contrib/glslopt/Main.cpp; type casting between bool and glslopt_target #39

Open
athanclark opened this issue Dec 15, 2013 · 2 comments

Comments

@athanclark
Copy link

I'm not sure if this is my machine or your code, but here's the command-like output:

/home/athan/glsl-optimizer/contrib/glslopt/Main.cpp: In function ‘bool init()’:
/home/athan/glsl-optimizer/contrib/glslopt/Main.cpp:20:37: error: cannot convert ‘bool’ to ‘glslopt_target’ for argument ‘1’ to ‘glslopt_ctx* glslopt_initialize(glslopt_target)’
make[2]: *** [CMakeFiles/glslopt.dir/contrib/glslopt/Main.cpp.o] Error 1
make[1]: *** [CMakeFiles/glslopt.dir/all] Error 2
make: *** [all] Error 2

Any help would be awesome. Thank you!

@mingwandroid
Copy link
Contributor

A bool (gles) has been changed to an enum since gles3 was added.. You need
to update your code.
On Dec 15, 2013 3:22 PM, "Athan Clark" [email protected] wrote:

I'm not sure if this is my machine or your code, but here's the
command-like output:

/home/athan/glsl-optimizer/contrib/glslopt/Main.cpp: In function ‘bool init()’:
/home/athan/glsl-optimizer/contrib/glslopt/Main.cpp:20:37: error: cannot convert ‘bool’ to ‘glslopt_target’ for argument ‘1’ to ‘glslopt_ctx* glslopt_initialize(glslopt_target)’
make[2]: *** [CMakeFiles/glslopt.dir/contrib/glslopt/Main.cpp.o] Error 1
make[1]: *** [CMakeFiles/glslopt.dir/all] Error 2
make: *** [all] Error 2

Any help would be awesome. Thank you!


Reply to this email directly or view it on GitHubhttps://github.com//issues/39
.

@aras-p
Copy link
Owner

aras-p commented Dec 16, 2013

Everything under contrib/ has been (surprise :)) contributed and I'm not maintaining any of that...

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

3 participants