diff options
Diffstat (limited to 'recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch')
-rw-r--r-- | recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch b/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch index fa46823f..fb909112 100644 --- a/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch +++ b/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From cad7eb0f0487aea64c4460bd6ad95b5c9537d35a Mon Sep 17 00:00:00 2001 | 1 | From f5a6600ff8312a7c0f30273ab783c1d822749a73 Mon Sep 17 00:00:00 2001 |
2 | From: Jiyu Yang <jiyu.yang@nxp.com> | 2 | From: Jiyu Yang <jiyu.yang@nxp.com> |
3 | Date: Thu, 11 Apr 2024 16:30:50 +0800 | 3 | Date: Thu, 11 Apr 2024 16:30:50 +0800 |
4 | Subject: [PATCH] egl: clear backgrounds black | 4 | Subject: [PATCH] egl: clear backgrounds black |
@@ -13,18 +13,15 @@ Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com> | |||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
14 | 14 | ||
15 | diff --git a/src/egl/opengles2/es2gears.c b/src/egl/opengles2/es2gears.c | 15 | diff --git a/src/egl/opengles2/es2gears.c b/src/egl/opengles2/es2gears.c |
16 | index db67f3a9..4e81afe7 100644 | 16 | index 9501f61..e421a8a 100644 |
17 | --- a/src/egl/opengles2/es2gears.c | 17 | --- a/src/egl/opengles2/es2gears.c |
18 | +++ b/src/egl/opengles2/es2gears.c | 18 | +++ b/src/egl/opengles2/es2gears.c |
19 | @@ -515,7 +515,7 @@ gears_draw(void) | 19 | @@ -350,7 +350,7 @@ gears_draw(void) |
20 | GLfloat transform[16]; | 20 | GLfloat transform[16]; |
21 | identity(transform); | 21 | mat4_identity(transform); |
22 | 22 | ||
23 | - glClearColor(0.0, 0.0, 0.0, 0.0); | 23 | - glClearColor(0.0, 0.0, 0.0, 0.0); |
24 | + glClearColor(0.0, 0.0, 0.0, 1.0); | 24 | + glClearColor(0.0, 0.0, 0.0, 1.0); |
25 | glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); | 25 | glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); |
26 | 26 | ||
27 | /* Translate and rotate the view */ | 27 | /* Translate and rotate the view */ |
28 | -- | ||
29 | 2.34.1 | ||
30 | |||