From ed5cd102e6f65a28c51bccd4c15479797ad6e31d Mon Sep 17 00:00:00 2001 From: mazze Date: Wed, 27 Apr 2016 21:44:46 +0000 Subject: [PATCH] Check for SYS/GL during library init. Reason is that the notification won't recognize if the variable is already set at library initialization. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@52705 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/libs/gl/gl_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workbench/libs/gl/gl_init.c b/workbench/libs/gl/gl_init.c index 39c2d81bd1..b476770add 100644 --- a/workbench/libs/gl/gl_init.c +++ b/workbench/libs/gl/gl_init.c @@ -219,6 +219,8 @@ static AROS_UFH3(struct Library *, GM_UNIQUENAME(LibInit), sizeof(struct SignalSemaphore) + sizeof(struct NotifyRequest)); InitSemaphore(&GLB(base)->glb_Sem); + GetGLVar(base); + SetupGLVarNotification(base); // return the library base as success -- 2.11.4.GIT