hlsl2glslfork icon indicating copy to clipboard operation
hlsl2glslfork copied to clipboard

Targetting v140 doesn't seem to work

Open TurkeyMan opened this issue 10 years ago • 0 comments

I supply ETargetGLSL_140 to parse and translate, and the resulting shader has '#version 140' at the top, but when I give it to OpenGL it complains:

0(230) : warning C7555: 'attribute' is deprecated, use 'in/out' instead 0(231) : warning C7555: 'attribute' is deprecated, use 'in/out' instead 0(235) : error C7533: global variable gl_Vertex is deprecated after version 120 0(236) : error C7533: global variable gl_Normal is deprecated after version 120 0(237) : error C7533: global variable gl_MultiTexCoord0 is deprecated after version 120 0(238) : error C7533: global variable gl_Color is deprecated after version 120 0(244) : error C7533: global variable gl_TexCoord is deprecated after version 120

Which seems valid. Did I do something wrong? Missing options? Surely giving ETargetGLSL_140 should cause it to produce the proper code for the version?

My code is built from github latest.

TurkeyMan avatar Feb 22 '14 12:02 TurkeyMan