From c6b3715e53960a821f94fadd610b9db90f8d23e0 Mon Sep 17 00:00:00 2001 From: Madhurkiran Harikrishnan Date: Wed, 26 Sep 2018 14:44:11 -0700 Subject: [PATCH] Make RGB565 as default EGLconfig Make RGB565 as default EGL config as that way user need not pass explicit parameters for RGB565 EGLconfig. In the orignial scenario, if user does not pass the gl-visual-config to RGB565 there will be color conversion resulting in lower performance. Signed-off-by: Madhurkiran Harikrishnan Reviewed-by: Hyun Kwon Upstream-Status: Inappropriate [Xilinx specific] --- src/gl-visual-config.h | 2 +- src/native-state-drm.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gl-visual-config.h b/src/gl-visual-config.h index dc035cd..113b721 100644 --- a/src/gl-visual-config.h +++ b/src/gl-visual-config.h @@ -31,7 +31,7 @@ class GLVisualConfig { public: GLVisualConfig(): - red(1), green(1), blue(1), alpha(1), depth(1), stencil(0), buffer(1) {} + red(5), green(6), blue(5), alpha(0), depth(16), stencil(0), buffer(16) {} GLVisualConfig(int r, int g, int b, int a, int d, int s, int buf): red(r), green(g), blue(b), alpha(a), depth(d), stencil(s), buffer(buf) {} GLVisualConfig(const std::string &s); -- 2.7.4