mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 17:09:40 +00:00
Update troubleshooting.rst
This commit is contained in:
@@ -57,6 +57,13 @@ For instance you may called **glm_vec4_** functions for **vec3** data type.
|
|||||||
It will try to write 32 byte but since **vec3** is 24 byte it should throw
|
It will try to write 32 byte but since **vec3** is 24 byte it should throw
|
||||||
memory access error or exit the app without saying anything.
|
memory access error or exit the app without saying anything.
|
||||||
|
|
||||||
|
**UPDATE - IMPORTANT:**
|
||||||
|
|
||||||
|
| On MSVC or some other compilers, if alignment is enabled (default) then double check alignment requirements if you got a crash.
|
||||||
|
|
||||||
|
| If you send GLM_VEC4_ONE or similar macros directly to a function, it may be crashed.
|
||||||
|
| Because compiler may not apply alignment as defined on **typedef** to that macro while passing it (on stack) to a function.
|
||||||
|
|
||||||
Wrong Results:
|
Wrong Results:
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user