diff options
Diffstat (limited to 'include/yasl/gl.h')
| -rw-r--r-- | include/yasl/gl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/yasl/gl.h b/include/yasl/gl.h index 66a245a..39d2c63 100644 --- a/include/yasl/gl.h +++ b/include/yasl/gl.h @@ -1,4 +1,4 @@ -/** @file Optional OpenGL/OpenGL ES contexts. Attribute lists are per-call. */ +/** @file Optional EGL/OpenGL/OpenGL ES contexts on Linux. Attribute lists are per-call. */ #ifndef YASL_GL_H #define YASL_GL_H #include "yasl/yasl.h" @@ -13,7 +13,8 @@ enum yasl_gl_api { YASL_GL_OPENGL, YASL_GL_OPENGL_ES }; typedef void (*yasl_gl_proc)(void); /** key/value pairs terminated by END, NULL defaults to GL3.2 core RGBA8 D24 S8. * share is a live GL surface or NULL. CPU flag is invalid. Context is owned by - * the returned surface. Detach it from all rendering threads before destruction. */ + * the returned surface. Detach it from all rendering threads before destruction. + * Cocoa returns NULL with YASL_ERROR_UNSUPPORTED; use Metal or MoltenVK. */ YASL_API yasl_surface *yasl_gl_surface_create(const char *title, int width, int height, unsigned flags, const int *attributes, yasl_surface *share); /** May run on a rendering thread. NULL detaches this thread's current context. */ |
