Undo some bad changes

This commit is contained in:
Luke Benstead 2023-04-23 21:00:01 +01:00
parent 0923b5c601
commit 1a678d2c8d

View File

@ -221,15 +221,13 @@ typedef struct {
} _glvec4; } _glvec4;
#define vec2cpy(dst, src) \ #define vec2cpy(dst, src) \
*((uint64_t*) dst) = *((uint64_t*) src); *((_glvec2*) dst) = *((_glvec2*) src)
#define vec3cpy(dst, src) \ #define vec3cpy(dst, src) \
*((uint64_t*) dst) = *((uint64_t*) src); \ *((_glvec3*) dst) = *((_glvec3*) src)
dst[2] = src[2];
#define vec4cpy(dst, src) \ #define vec4cpy(dst, src) \
*((uint64_t*) dst) = *((uint64_t*) src); \ *((_glvec4*) dst) = *((_glvec4*) src)
*((uint64_t*) dst + 2) = *((uint64_t*) src + 2);
GL_FORCE_INLINE float clamp(float d, float min, float max) { GL_FORCE_INLINE float clamp(float d, float min, float max) {
return (d < min) ? min : (d > max) ? max : d; return (d < min) ? min : (d > max) ? max : d;