From a9d260cf145b5f0912d6b489a8b1605d45b59d63 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 11 Nov 2016 12:27:44 +0100 Subject: [PATCH] Fixed USE_DISPATCH_GL compile, seams no-one is actually using it since it is broken for a while (nw) --- src/osd/modules/render/drawogl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/modules/render/drawogl.cpp b/src/osd/modules/render/drawogl.cpp index 364bce21fe2..ffd34138891 100644 --- a/src/osd/modules/render/drawogl.cpp +++ b/src/osd/modules/render/drawogl.cpp @@ -374,7 +374,7 @@ void renderer_ogl::load_gl_lib(running_machine &machine) stemp = downcast(machine.options()).gl_lib(); if (stemp != nullptr && strcmp(stemp, OSDOPTVAL_AUTO) == 0) - stemp = nullptrnullptr; + stemp = nullptr; if (SDL_GL_LoadLibrary(stemp) != 0) // Load library (default for e==nullptr { @@ -385,7 +385,7 @@ void renderer_ogl::load_gl_lib(running_machine &machine) #endif #endif #ifdef USE_DISPATCH_GL - gl_dispatch = (osd_gl_dispatch *) osd_malloc(sizeof(osd_gl_dispatch)); + gl_dispatch = global_alloc(osd_gl_dispatch); #endif s_dll_loaded = true; }