Skip to content

Commit 78a6d7a

Browse files
author
jK
committed
fix mac compile spring#5
1 parent d57547a commit 78a6d7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rts/System/OffscreenGLContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ void COffscreenGLContext::WorkerThreadFree()
8383
/////////////////////////////////////////////////////////////////////////////////////////////////
8484
//! APPLE
8585

86-
#include "Rendering/GL/myGL.h"
8786
#include <OpenGL/CGLCurrent.h>
87+
#include <OpenGL/OpenGL.h>
8888

8989
COffscreenGLContext::COffscreenGLContext()
9090
{
@@ -99,12 +99,12 @@ COffscreenGLContext::COffscreenGLContext()
9999
};
100100
GLint numPixelFormats = 0;
101101
CGLPixelFormatObj cglPxlfmt = NULL;
102-
CGLChoosePixelFormat(attributeList, &cglPxlfmt, &numPixelFormats);
102+
CGLChoosePixelFormat(attribs, &cglPxlfmt, &numPixelFormats);
103103
if (!cglPxlfmt)
104104
throw opengl_error("Couldn't create an offscreen GL context: CGLChoosePixelFmt failed!");
105105

106106
// Create Shared Context
107-
CGLCreateContext(cglPxlfmt, currentCglCtx, cglWorkerCtx);
107+
CGLCreateContext(cglPxlfmt, currentCglCtx, &cglWorkerCtx);
108108
CGLDestroyPixelFormat(cglPxlfmt);
109109
if (!cglWorkerCtx)
110110
throw opengl_error("Couldn't create an offscreen GL context: CGLCreateContext failed!");

0 commit comments

Comments
 (0)