mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
(CGL) Add some logs
This commit is contained in:
parent
3c4615d273
commit
84b5a96898
@ -186,7 +186,7 @@ static bool gfx_ctx_cgl_suppress_screensaver(void *data, bool enable)
|
||||
static bool gfx_ctx_cgl_has_windowed(void *data)
|
||||
{
|
||||
(void)data;
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool gfx_ctx_cgl_bind_api(void *data, enum gfx_ctx_api api,
|
||||
@ -219,7 +219,7 @@ static void gfx_ctx_cgl_bind_hw_render(void *data, bool enable)
|
||||
|
||||
static CGLContextObj gfx_ctx_cgl_init_create(void)
|
||||
{
|
||||
GLint num;
|
||||
GLint num, params = 1;
|
||||
CGLPixelFormatObj pix;
|
||||
CGLContextObj glCtx = NULL;
|
||||
CGLPixelFormatAttribute attributes[] = {
|
||||
@ -235,6 +235,8 @@ static CGLContextObj gfx_ctx_cgl_init_create(void)
|
||||
|
||||
printf("glCtx: %p\n", glCtx);
|
||||
|
||||
CGLSetParameter(glCtx, kCGLCPSwapInterval, ¶ms);
|
||||
|
||||
return glCtx;
|
||||
}
|
||||
|
||||
@ -316,6 +318,8 @@ static bool gfx_ctx_cgl_init(void *data)
|
||||
attach_gl_context_to_window(cgl->glCtx,
|
||||
CGShieldingWindowID(cgl->displayID), &cgl->width, &cgl->height);
|
||||
|
||||
printf("size:%dx%d\n", cgl->width, cgl->height);
|
||||
|
||||
CGLSetCurrentContext(cgl->glCtx);
|
||||
|
||||
driver->video_context_data = cgl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user