mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
EGL_OPENGL_ES_BIT->EGL_OPENGL_ES2_BIT
This commit is contained in:
2
TODO
2
TODO
@@ -304,3 +304,5 @@ Allow medium, high, very_high and ultra quality for -bm cbr. If that is used the
|
||||
Maybe remove shader compute code. It doesn't seem necessary anymore now that glSwapBuffer/glFinish isn't used. dbus server isn't needed anymore either, the code can be moved back to the gpu screen recorder process.
|
||||
|
||||
Add proper check if opengl functions are supported. dlsym for the symbol will return a no-op function if it's not supported, so it silently fails if used.
|
||||
|
||||
Colors are offset to bottom left by 1 pixel or so on steam deck in landscape mode.
|
||||
|
||||
@@ -48,6 +48,7 @@ typedef void(*__GLXextFuncPtr)(void);
|
||||
#define EGL_OPENGL_ES_API 0x30A0
|
||||
#define EGL_OPENGL_BIT 0x0008
|
||||
#define EGL_OPENGL_ES_BIT 0x0001
|
||||
#define EGL_OPENGL_ES2_BIT 0x0004
|
||||
#define EGL_NONE 0x3038
|
||||
#define EGL_CONTEXT_CLIENT_VERSION 0x3098
|
||||
#define EGL_BACK_BUFFER 0x3084
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <xf86drm.h>
|
||||
#include <libdrm/drm_fourcc.h>
|
||||
#include <drm_fourcc.h>
|
||||
|
||||
#include <libavutil/mastering_display_metadata.h>
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ static bool gsr_egl_create_window(gsr_egl *self) {
|
||||
|
||||
const int32_t attr[] = {
|
||||
EGL_BUFFER_SIZE, 24,
|
||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT,
|
||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
|
||||
EGL_NONE, EGL_NONE
|
||||
};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <spa/param/video/format-utils.h>
|
||||
#include <spa/debug/types.h>
|
||||
|
||||
#include <libdrm/drm_fourcc.h>
|
||||
#include <drm_fourcc.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
Reference in New Issue
Block a user