Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rauch <Rauch.Christian@gmx.de>2020-07-22 03:45:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-07-22 03:57:41 +0300
commitcfa788cf9a8ef08f11beb04bd4ea7e87b2a9bf6e (patch)
treebe2afe18a0436dba8d6b9c030df1ca4d803624ef /source/blender/windowmanager/intern/wm_window.c
parent607d745a79e0c1f79fdd026625be4169e5530001 (diff)
GPU: clear color with 1.0 alpha
This impacts GHOST/Wayland which draws windows using alpha.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 422b5fe5404..e444c5b2109 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -649,7 +649,7 @@ static void wm_window_ghostwindow_add(wmWindowManager *wm,
}
#endif
/* until screens get drawn, make it nice gray */
- GPU_clear_color(0.55, 0.55, 0.55, 0.0);
+ GPU_clear_color(0.55, 0.55, 0.55, 1.0f);
/* Crash on OSS ATI: bugs.launchpad.net/ubuntu/+source/mesa/+bug/656100 */
if (!GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_UNIX, GPU_DRIVER_OPENSOURCE)) {
GPU_clear(GPU_COLOR_BIT);