Skip to content

Commit 2d24580

Browse files
Updated GLSL definitions on Android
1 parent 621e38a commit 2d24580

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ uvec2 asuint( vec2 x ){ return floatBitsToUint(x); }
160160
uvec3 asuint( vec3 x ){ return floatBitsToUint(x); }
161161
uvec4 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)
164164
float f16tof32( uint u1 )
165165
{
166166
return unpackHalf2x16( u1 ).x;

Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
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"

0 commit comments

Comments
 (0)