From 8e57226a8b082bb834585ba05a4a579d87f67e6a Mon Sep 17 00:00:00 2001 From: neil Date: Fri, 29 Apr 2016 15:25:03 +0000 Subject: [PATCH] A bit number was mistakenly used instead of a flag when setting notification flags. Notification on ENV:SYS/GL should work now. A workaround for this bug was also removed. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@52708 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/libs/gl/gl_init.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/workbench/libs/gl/gl_init.c b/workbench/libs/gl/gl_init.c index abe4d98b51..91b3954cc7 100644 --- a/workbench/libs/gl/gl_init.c +++ b/workbench/libs/gl/gl_init.c @@ -1,5 +1,5 @@ /* - Copyright 2015, The AROS Development Team. All rights reserved. + Copyright 2015-2016, The AROS Development Team. All rights reserved. $Id$ */ @@ -181,7 +181,7 @@ void SetupGLVarNotification(struct Library *base) if (GLB(base)->glb_Notify.nr_stuff.nr_Msg.nr_Port && !GLB(base)->glb_Notify.nr_FullName) { - GLB(base)->glb_Notify.nr_Flags = NRF_SEND_MESSAGE|NRB_NOTIFY_INITIAL; + GLB(base)->glb_Notify.nr_Flags = NRF_SEND_MESSAGE | NRF_NOTIFY_INITIAL; StartNotify(&GLB(base)->glb_Notify); D(bug("[GL] %s: Started FS Notification for '%s'\n", __PRETTY_FUNCTION__, GLB(base)->glb_Notify.nr_FullName)); } @@ -219,10 +219,6 @@ static AROS_UFH3(struct Library *, GM_UNIQUENAME(LibInit), sizeof(struct SignalSemaphore) + sizeof(struct NotifyRequest)); InitSemaphore(&GLB(base)->glb_Sem); - // TODO: the following line is a workaround for a bug in - // the notification system. - GetGLVar(base); - SetupGLVarNotification(base); // return the library base as success -- 2.11.4.GIT