File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ void COffscreenGLContext::WorkerThreadFree()
83
83
// ///////////////////////////////////////////////////////////////////////////////////////////////
84
84
// ! APPLE
85
85
86
- #include " Rendering/GL/myGL.h"
87
86
#include < OpenGL/CGLCurrent.h>
87
+ #include < OpenGL/OpenGL.h>
88
88
89
89
COffscreenGLContext::COffscreenGLContext ()
90
90
{
@@ -99,12 +99,12 @@ COffscreenGLContext::COffscreenGLContext()
99
99
};
100
100
GLint numPixelFormats = 0 ;
101
101
CGLPixelFormatObj cglPxlfmt = NULL ;
102
- CGLChoosePixelFormat (attributeList , &cglPxlfmt, &numPixelFormats);
102
+ CGLChoosePixelFormat (attribs , &cglPxlfmt, &numPixelFormats);
103
103
if (!cglPxlfmt)
104
104
throw opengl_error (" Couldn't create an offscreen GL context: CGLChoosePixelFmt failed!" );
105
105
106
106
// Create Shared Context
107
- CGLCreateContext (cglPxlfmt, currentCglCtx, cglWorkerCtx);
107
+ CGLCreateContext (cglPxlfmt, currentCglCtx, & cglWorkerCtx);
108
108
CGLDestroyPixelFormat (cglPxlfmt);
109
109
if (!cglWorkerCtx)
110
110
throw opengl_error (" Couldn't create an offscreen GL context: CGLCreateContext failed!" );
You can’t perform that action at this time.
0 commit comments