Merge pull request #50276 from uuuuuup/fix_gles3

fix 3D scene not rendered on GLES3 HTML5 export
This commit is contained in:
Rémi Verschelde 2021-07-08 17:35:55 +02:00 committed by GitHub
commit 83ad0dddad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -157,9 +157,10 @@ public:
uint32_t view_index;
// make sure this struct is padded to be a multiple of 16 bytes for webgl
float pad[1];
float pad[3];
} ubo_data;
static_assert(sizeof(SceneDataUBO) % 16 == 0, "SceneDataUBO size must be a multiple of 16 bytes");
GLuint scene_ubo;