mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Allow passing const float* to make functions.
This commit is contained in:
@@ -685,7 +685,7 @@ glms_vec2_(lerp)(vec2s from, vec2s to, float t) {
|
||||
*/
|
||||
CGLM_INLINE
|
||||
vec2s
|
||||
glms_vec2_(make)(float * __restrict src) {
|
||||
glms_vec2_(make)(const float * __restrict src) {
|
||||
vec2s dest;
|
||||
glm_vec2_make(src, dest.raw);
|
||||
return dest;
|
||||
|
||||
Reference in New Issue
Block a user