aras-p / hlsl2glslfork

HLSL to GLSL language translator based on ATI's HLSL2GLSL. Used in Unity.
Other
550 stars 143 forks source link

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

Open athanclark opened 10 years ago

athanclark commented 10 years ago

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 commented 10 years ago

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/aras-p/hlsl2glslfork/issues/39 .

aras-p commented 10 years ago

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