Skip to content

Instantly share code, notes, and snippets.

@koenkooi
Created April 20, 2018 08:18
Show Gist options
  • Save koenkooi/1d8e71969167f7ff68163f15166e797a to your computer and use it in GitHub Desktop.
Save koenkooi/1d8e71969167f7ff68163f15166e797a to your computer and use it in GitHub Desktop.
koen@beast:/build/pkg/xbmc$ git show
commit b66dcb6788aecfc5f9ef5d3e258a49075fd4688a
Author: Koen Kooi <koen@dominion.thruhere.net>
Date: Fri Apr 20 09:22:40 2018 +0200
EGLutils: don't request 16 bit depth
aka "Make it work with lima". Inspired by
https://github.com/superna9999/meta-meson/blob/topic/mesa-lima/recipes-benchmark/glmark2/files/0001-Make-it-run-with-Lima.patch
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
diff --git a/xbmc/utils/EGLUtils.cpp b/xbmc/utils/EGLUtils.cpp
index 723f7e9..c9263ea 100644
--- a/xbmc/utils/EGLUtils.cpp
+++ b/xbmc/utils/EGLUtils.cpp
@@ -94,7 +94,6 @@ bool CEGLContextUtils::CreateDisplay(EGLDisplay display,
EGL_GREEN_SIZE, 8,
EGL_BLUE_SIZE, 8,
EGL_ALPHA_SIZE, 8,
- EGL_DEPTH_SIZE, 16,
EGL_STENCIL_SIZE, 0,
EGL_SAMPLE_BUFFERS, 0,
EGL_SAMPLES, 0,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment