From 78317705abddfe978b13b061fcb14f84a56fad5f Mon Sep 17 00:00:00 2001 From: NicJA Date: Fri, 6 Jan 2017 03:20:36 +0000 Subject: [PATCH] register the software rasterizer with the gfx root git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@53167 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/graphics/graphics_driver.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rom/graphics/graphics_driver.c b/rom/graphics/graphics_driver.c index f7fe4d0045..28a2ce2d6a 100644 --- a/rom/graphics/graphics_driver.c +++ b/rom/graphics/graphics_driver.c @@ -86,6 +86,7 @@ struct gfx_driverdata *AllocDriverData(struct RastPort *rp, BOOL alloc, struct G int driver_init(struct GfxBase * GfxBase) { + OOP_Class *baseGfx; EnterFunc(bug("driver_init()\n")); @@ -93,6 +94,8 @@ int driver_init(struct GfxBase * GfxBase) if (!OpenLibrary("gfx.hidd", 0)) return FALSE; + baseGfx = OOP_FindClass(CLID_Hidd_Gfx); + /* Initialize the semaphores */ InitSemaphore(&(PrivGBase(GfxBase)->blit_sema)); @@ -123,8 +126,8 @@ int driver_init(struct GfxBase * GfxBase) CDD(GfxBase)->invalid_id = INVALID_ID; CDD(GfxBase)->last_id = AROS_RTG_MONITOR_ID; - /* Init memory driver */ - CDD(GfxBase)->memorygfx = OOP_NewObject(NULL, CLID_Hidd_Gfx, NULL); + /* Init software driver */ + CDD(GfxBase)->memorygfx = HW_AddDriver(PrivGBase(GfxBase)->GfxRoot, baseGfx, NULL); DEBUG_INIT(bug("[driver_init] Memory driver object 0x%p\n", CDD(GfxBase)->memorygfx)); if (CDD(GfxBase)->memorygfx) -- 2.11.4.GIT