[client] egl: allow for partial texture updates

This commit is contained in:
Geoffrey McRae
2022-05-21 21:21:16 +10:00
parent 7ad3610276
commit 1fcdcc8725
4 changed files with 67 additions and 6 deletions

View File

@@ -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))