diff --git a/plugins/zzogl-pg/opengl/GLWinX11.cpp b/plugins/zzogl-pg/opengl/GLWinX11.cpp index 746be68482..df433c52fc 100644 --- a/plugins/zzogl-pg/opengl/GLWinX11.cpp +++ b/plugins/zzogl-pg/opengl/GLWinX11.cpp @@ -62,9 +62,9 @@ void GLWindow::CloseWindow() { if ( glDisplay != NULL ) { - XCloseDisplay(glDisplay); - glDisplay = NULL; - } + XCloseDisplay(glDisplay); + glDisplay = NULL; + } } bool GLWindow::DisplayWindow(int _width, int _height) diff --git a/plugins/zzogl-pg/opengl/GS.h b/plugins/zzogl-pg/opengl/GS.h index 0de5d18f96..a2a181a0f4 100644 --- a/plugins/zzogl-pg/opengl/GS.h +++ b/plugins/zzogl-pg/opengl/GS.h @@ -872,8 +872,13 @@ char *SysLibError(); // Gets previous error loading sysbols void SysCloseLibrary(void *lib); // Closes Library void SysMessage(const char *fmt, ...); +#ifdef __LINUX__ +#include "Utilities/MemcpyFast.h" +#define memcpy_amd memcpy_fast +#else extern "C" void * memcpy_amd(void *dest, const void *src, size_t n); extern "C" u8 memcmp_mmx(const void *dest, const void *src, int n); +#endif template class CInterfacePtr diff --git a/plugins/zzogl-pg/opengl/Linux/zzogl-pg/zzogl-pg.cbp b/plugins/zzogl-pg/opengl/Linux/zzogl-pg/zzogl-pg.cbp index 97cfe70351..93529022a9 100644 --- a/plugins/zzogl-pg/opengl/Linux/zzogl-pg/zzogl-pg.cbp +++ b/plugins/zzogl-pg/opengl/Linux/zzogl-pg/zzogl-pg.cbp @@ -16,6 +16,9 @@ + + + @@ -44,6 +48,7 @@ + @@ -119,7 +124,6 @@