mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-24 00:25:06 +00:00
Build fix for old EGL headers
This commit is contained in:
parent
1efdeeb9dc
commit
c2778e040a
2 changed files with 6 additions and 1 deletions
|
@ -94,6 +94,11 @@ typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLen
|
|||
#define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
|
||||
#endif
|
||||
|
||||
#if !defined(EGL_EXT_image_dma_buf_import_modifiers) || !defined(EGL_EGLEXT_PROTOTYPES)
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
|
||||
#endif
|
||||
|
||||
#define EGL_MAX_PLANES 4
|
||||
|
||||
class EGLExtensions {
|
||||
|
|
|
@ -946,7 +946,7 @@ VAAPIRenderer::initializeEGL(EGLDisplay dpy,
|
|||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < descriptor.num_layers; i++) {
|
||||
for (uint32_t i = 0; i < descriptor.num_layers; i++) {
|
||||
if (!m_EglImageFactory.supportsImportingFormat(dpy, descriptor.layers[i].drm_format)) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"EGL implementation lacks support for importing format: %08x", descriptor.layers[0].drm_format);
|
||||
|
|
Loading…
Reference in a new issue