From 1a678d2c8d2cca713bdeda0c25e60a7a3a16a185 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Sun, 23 Apr 2023 21:00:01 +0100 Subject: [PATCH] Undo some bad changes --- GL/private.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/GL/private.h b/GL/private.h index c3f50cb..f945ccb 100644 --- a/GL/private.h +++ b/GL/private.h @@ -221,15 +221,13 @@ typedef struct { } _glvec4; #define vec2cpy(dst, src) \ - *((uint64_t*) dst) = *((uint64_t*) src); + *((_glvec2*) dst) = *((_glvec2*) src) #define vec3cpy(dst, src) \ - *((uint64_t*) dst) = *((uint64_t*) src); \ - dst[2] = src[2]; + *((_glvec3*) dst) = *((_glvec3*) src) #define vec4cpy(dst, src) \ - *((uint64_t*) dst) = *((uint64_t*) src); \ - *((uint64_t*) dst + 2) = *((uint64_t*) src + 2); + *((_glvec4*) dst) = *((_glvec4*) src) GL_FORCE_INLINE float clamp(float d, float min, float max) { return (d < min) ? min : (d > max) ? max : d;