aras-p / hlsl2glslfork

HLSL to GLSL language translator based on ATI's HLSL2GLSL. Used in Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

athanclark opened this issue · comments

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!

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" notifications@github.com 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
.

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