From 70025e4d08e2e8edcc07f290f8e2014ce53127f4 Mon Sep 17 00:00:00 2001 From: barbudreadmon Date: Fri, 24 Jul 2020 18:39:00 +0200 Subject: [PATCH] gcm_gfx.c: compatibility with all sdks --- gfx/drivers/gcm_gfx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gfx/drivers/gcm_gfx.c b/gfx/drivers/gcm_gfx.c index fb24bdb07a..83a81610f5 100644 --- a/gfx/drivers/gcm_gfx.c +++ b/gfx/drivers/gcm_gfx.c @@ -193,7 +193,13 @@ static gcmContextData *gcm_init_screen(gcm_video_t* gcm) /* Initialise Reality, which sets up the * command buffer and shared I/O memory */ +#ifdef NV40TCL_RENDER_ENABLE + /* There was an api breakage on 2020-07-10, let's + * workaround this by using one of the new defines */ rsxInit (&context, CB_SIZE, HOST_SIZE, host_addr); +#else + context = rsxInit (CB_SIZE, HOST_SIZE, host_addr); +#endif if (!context) goto error; saved_context = context;