mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-05 10:14:04 +00:00
[client] egl: allow for partial texture updates
This commit is contained in:
@@ -31,6 +31,10 @@
|
||||
_a > _b ? _a : _b; })
|
||||
#endif
|
||||
|
||||
#ifndef clamp
|
||||
#define clamp(v,a,b) min(max(v, a), b)
|
||||
#endif
|
||||
|
||||
#define UPCAST(type, x) \
|
||||
(type *)((uintptr_t)(x) - offsetof(type, base))
|
||||
|
||||
|
Reference in New Issue
Block a user