Merge pull request #57688 from The-O-King/ios_half_float_fix

Re-fix Disabling Half Floats on iOS
This commit is contained in:
Rémi Verschelde 2022-02-06 11:11:06 +01:00 committed by GitHub
commit 002e705367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2287,6 +2287,7 @@ void RasterizerStorageGLES2::mesh_add_surface(RID p_mesh, uint32_t p_format, VS:
if (p_format & VS::ARRAY_COMPRESS_VERTEX) {
attribs[i].type = _GL_HALF_FLOAT_OES;
positions_stride += attribs[i].size * 2;
uses_half_float = true;
} else {
attribs[i].type = GL_FLOAT;
positions_stride += attribs[i].size * 4;