File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Graphics/HLSL2GLSLConverterLib/include Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ uvec2 asuint( vec2 x ){ return floatBitsToUint(x); }
160160uvec3 asuint ( vec3 x ){ return floatBitsToUint (x ); }
161161uvec4 asuint ( vec4 x ){ return floatBitsToUint (x ); }
162162
163- #if !defined(GL_ES ) && (__VERSION__ >=420 )
163+ #if defined( GL_ES ) && ( __VERSION__ >= 310 ) || !defined(GL_ES ) && (__VERSION__ >=420 )
164164float f16tof32 ( uint u1 )
165165{
166166 return unpackHalf2x16 ( u1 ).x ;
Original file line number Diff line number Diff line change 160160"uvec3 asuint( vec3 x ){ return floatBitsToUint(x); }\n"
161161"uvec4 asuint( vec4 x ){ return floatBitsToUint(x); }\n"
162162"\n"
163- "#if !defined(GL_ES) && (__VERSION__>=420)\n"
163+ "#if defined(GL_ES) && (__VERSION__>=310) || !defined(GL_ES) && (__VERSION__>=420)\n"
164164"float f16tof32( uint u1 )\n"
165165"{\n"
166166" return unpackHalf2x16( u1 ).x;\n"
You can’t perform that action at this time.
0 commit comments