diff options
author | David Robillard <d@drobilla.net> | 2020-03-14 15:14:59 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-15 10:24:47 +0100 |
commit | 1450f08a3d9f961bdc9cf9014553492bf986cf72 (patch) | |
tree | 3540adf68d5e5148147d7ae9fec8529a4b3911a3 /pugl | |
parent | f5cfed13f8d63c51fc40d4844191811ea8266db8 (diff) | |
download | pugl-1450f08a3d9f961bdc9cf9014553492bf986cf72.tar.gz pugl-1450f08a3d9f961bdc9cf9014553492bf986cf72.tar.bz2 pugl-1450f08a3d9f961bdc9cf9014553492bf986cf72.zip |
Mac: Remove unnecessary resize handler in GL backend
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/detail/mac_gl.m | 14 |
1 files 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 <http://drobilla.net> + Copyright 2019-2020 David Robillard <http://drobilla.net> 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; |