mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Check for GL profile on macos to determine if context is core or compat
This commit is contained in:
@@ -77,6 +77,9 @@ CGLError GL_EXPORT_NAME(CGLCreateContext)(CGLPixelFormatObj pix, CGLContextObj s
|
||||
CGL.CGLDescribePixelFormat(pix, 0, kCGLPFASamples, &value);
|
||||
init.multiSamples = RDCMAX(1, value);
|
||||
|
||||
CGL.CGLDescribePixelFormat(pix, 0, kCGLPFAOpenGLProfile, &value);
|
||||
bool isCore = (value >= kCGLOGLPVersion_3_2_Core);
|
||||
|
||||
GLWindowingData data;
|
||||
data.wnd = NULL;
|
||||
data.ctx = *ctx;
|
||||
@@ -84,7 +87,7 @@ CGLError GL_EXPORT_NAME(CGLCreateContext)(CGLPixelFormatObj pix, CGLContextObj s
|
||||
|
||||
{
|
||||
SCOPED_LOCK(glLock);
|
||||
cglhook.driver.CreateContext(data, share, init, true, true);
|
||||
cglhook.driver.CreateContext(data, share, init, isCore, isCore);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user