From af5468410376f6b8cb3a0c6e3fb46636e03299f8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 13 Mar 2025 01:38:26 +0100 Subject: Fix screenshot with region not working correctly for some sizes and possibly crashing --- include/egl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/egl.h') diff --git a/include/egl.h b/include/egl.h index 8a2b6c2..8caf89a 100644 --- a/include/egl.h +++ b/include/egl.h @@ -132,6 +132,8 @@ typedef void(*__GLXextFuncPtr)(void); #define GL_ONE_MINUS_SRC_ALPHA 0x0303 #define GL_DEBUG_OUTPUT 0x92E0 #define GL_SCISSOR_TEST 0x0C11 +#define GL_PACK_ALIGNMENT 0x0D05 +#define GL_UNPACK_ALIGNMENT 0x0CF5 #define GL_VENDOR 0x1F00 #define GL_RENDERER 0x1F01 @@ -269,6 +271,7 @@ struct gsr_egl { void (*glEnable)(unsigned int cap); void (*glDisable)(unsigned int cap); void (*glBlendFunc)(unsigned int sfactor, unsigned int dfactor); + void (*glPixelStorei)(unsigned int pname, int param); int (*glGetUniformLocation)(unsigned int program, const char *name); void (*glUniform1f)(int location, float v0); void (*glUniform2f)(int location, float v0, float v1); -- cgit v1.2.3-70-g09d2