From 1450f08a3d9f961bdc9cf9014553492bf986cf72 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Mar 2020 15:14:59 +0100 Subject: Mac: Remove unnecessary resize handler in GL backend --- pugl/detail/mac_gl.m | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/pugl/detail/mac_gl.m b/pugl/detail/mac_gl.m index b0d6c5e..d6add02 100644 --- a/pugl/detail/mac_gl.m +++ b/pugl/detail/mac_gl.m @@ -1,5 +1,5 @@ /* - Copyright 2019 David Robillard + Copyright 2019-2020 David Robillard Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -147,16 +147,6 @@ puglMacGlLeave(PuglView* view, const PuglEventExpose* expose) return PUGL_SUCCESS; } -static PuglStatus -puglMacGlResize(PuglView* view, int PUGL_UNUSED(width), int PUGL_UNUSED(height)) -{ - PuglOpenGLView* const drawView = (PuglOpenGLView*)view->impl->drawView; - - [drawView reshape]; - - return PUGL_SUCCESS; -} - PuglGlFunc puglGetProcAddress(const char *name) { @@ -181,7 +171,7 @@ const PuglBackend* puglGlBackend(void) puglMacGlDestroy, puglMacGlEnter, puglMacGlLeave, - puglMacGlResize, + puglStubResize, puglStubGetContext}; return &backend; -- cgit v1.2.1