diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-06 12:41:14 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-06 12:41:14 +0200 |
commit | 954a41de9cde43f68eae0340cc1ed109257f9356 (patch) | |
tree | 2556c09a3e53c656fe265c20475476c5c31314a5 /include | |
parent | 239f2010f5b91117ecd485ac20c541a1e8ecd434 (diff) |
Explicit glFlush/glFinish before and after render operations to fix tearing and stutter on amd
Diffstat (limited to 'include')
-rw-r--r-- | include/egl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/egl.h b/include/egl.h index 720be35..e54f23d 100644 --- a/include/egl.h +++ b/include/egl.h @@ -114,6 +114,7 @@ typedef void(*__GLXextFuncPtr)(void); #define GL_TEXTURE_MIN_FILTER 0x2801 #define GL_TEXTURE_WIDTH 0x1000 #define GL_TEXTURE_HEIGHT 0x1001 +#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 #define GL_NEAREST 0x2600 #define GL_CLAMP_TO_EDGE 0x812F #define GL_LINEAR 0x2601 @@ -265,8 +266,6 @@ struct gsr_egl { void (*glTexParameteriv)(unsigned int target, unsigned int pname, const int *params); void (*glGetTexLevelParameteriv)(unsigned int target, int level, unsigned int pname, int *params); void (*glTexImage2D)(unsigned int target, int level, int internalFormat, int width, int height, int border, unsigned int format, unsigned int type, const void *pixels); - void (*glTexSubImage2D)(unsigned int target, int level, int xoffset, int yoffset, int width, int height, unsigned int format, unsigned int type, const void *pixels); - void (*glCopyImageSubData)(unsigned int srcName, unsigned int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, unsigned int dstName, unsigned int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth); void (*glGetTexImage)(unsigned int target, int level, unsigned int format, unsigned int type, void *pixels); void (*glGenFramebuffers)(int n, unsigned int *framebuffers); void (*glBindFramebuffer)(unsigned int target, unsigned int framebuffer); |